Jump to content

Math Forumla


MikeDXUNL

Recommended Posts

Hi,

 

The answer to your question is yes and no. Yes you can reach the figure 1000 from the numbers given, but only if you use a higher precision.

 

Based on 365 points being 36%, the total points would come out at around 1013. The correct percentage is 36.5%. Using this we can get 100:

 

<?php
$currentPoints = 365;
$currentPercentage = 36.5;
$totalPoints = (100 / $currentPercentage) * $currentPoints;

 

Robin

Link to comment
https://forums.phpfreaks.com/topic/114113-math-forumla/#findComment-586517
Share on other sites

That's really all there is too it.

 

Someone has ##1 of ## achievements

##1 are worth so many points.

(in this case I have 18 of 50 achievements. and those 18 are worth 365 points.)

I need to find how many total points there are. i know for this game there are 1000.

 

So I need to find X

 

but:

18 = 365

50    X

 

doesnt work.

 

 

Link to comment
https://forums.phpfreaks.com/topic/114113-math-forumla/#findComment-587228
Share on other sites

hi friend! How are you?

 

Are you limiting the total points to 1000 yourself? Or there is any formula you are using to limit it? I mean eg. 50 questions of 20 points each etc.

 

I think you are rounding of your 365/1000 to get 18/50

 

 

no. that's a complete incorrect statement.

Link to comment
https://forums.phpfreaks.com/topic/114113-math-forumla/#findComment-587727
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.