Question : Rounding Off a Float in Sybase

Hi ,
I have a float value like 2345.000078888 . I would like to round it off to two decilmal places . How do i do it ?
The round function is not producing the desirable value . I want 2345.00 . But it gives me 2345.0000000.
Please help

Answer : Rounding Off a Float in Sybase

Hi moonoo!

Perhaps, this is what you are looking :

   Select cast(round(2345.000078888,2) as numeric(8,2))

Hope this helps you.  Just try it.


Goodluck!
eNTRANCE2002 :-)
Random Solutions  
 
programming4us programming4us