Displaying 1 result from an estimated 1 matches for "float_num".
Did you mean:
float_n
2006 Jun 06
4
pls help me regarding Maths round up function.....
Hi,
I have some values on my webpage displaying like
1.22333333333
2.33333344444
2.33377777777
etc.
Here I want to display values upto 2 decimal places correct.
i.e, 1.22333333333 should be dislayed as 1.22
2.33333344444 should be dislayed as 2.33
2.33777777777 should be dislayed as 2.34
& so on....
How to do this in ruby?????
Is there any function???
Thanx in advance.
Prash
--