[Solved] Mathematical operation help
I need some math calculation some like this:
[day] - [value] 40 - 8000 41 - 9000 42 - 10000 43 - 11000 44 - 12000 45 - 13000 ..... i tried some like: PHP Code:
|
Re: Mathematical operation help
Which usage do you need this for ?
What are values for day < 40 ? Are values increased by 1000 each day after 40 ? |
Re: Mathematical operation help
Quote:
If day < 40 i used others values - no problem here. I don't have any idea how to calculate after the day is > 40, increased by 1000 each day, like in example of 1st post. |
Re: Mathematical operation help
From your current day extract your base day and multiply it 1000. Then add it up to your base day value.
|
Re: Mathematical operation help
Still no have any iddea :stupid:
PHP Code:
|
Re: Mathematical operation help
Dude I've already told you hold it should be done. Can't you follow simple instructions?!
Code:
NewValue = (CurrentDay - BaseDay) * 1000 + BaseDayValue |
Re: Mathematical operation help
oh, oky. done. Thanks!
|
Re: [Solved] Mathematical operation help
This is simple math. Find the equation of a straight line.
|
| All times are GMT -4. The time now is 06:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.