Log in

View Full Version : php math function



hemi
10-06-2009, 01:51 PM
hello ,

i want a function that converts

a=3.1567

then it should be converted as

a=3.2
(dont tell me about ceil() )

if it is simple help me out

JasonDFR
10-06-2009, 02:01 PM
echo round(3.15895, 1);

I bet you could have figured this one out yourself.

hemi
10-06-2009, 02:24 PM
you won ur bet

Mohamed
10-06-2009, 03:43 PM
Thank you