Page 1 of 1

calculation

Posted: Wed Nov 23, 2005 5:53 am
by ben_albrechts
I have to add this part to my code to do the next calculation : 1,5+((A-1)x0,5) where A is a number the visitor enters in a form

Posted: Wed Nov 23, 2005 5:58 am
by Jenk
Good for you.

*snip*

A slightly more helpful response:

Code: Select all

$result = 1.5 + (($A - 1) * 0.5);

Posted: Wed Nov 23, 2005 7:12 am
by ben_albrechts
thank you