Round() / RoundUp() / RoundDown()
Posted: Tue May 02, 2006 5:52 pm
Hi Fred & Team,
Could Round() perhaps be replaced with:
RoundUp(1234.56789,2) = 1234.57
RoundUp(123.45,0) = 123
Round(1234.56789,2) = 1234.57
Round(123.45,2) = 123.45
Round(123.45,0) = 123
RoundDown(1234.567,2) = 1234.56
RoundDown(1234.567,0) = 1234
- Obviously these can be done easily enough with Procedures, but it would be nice to have as part of the core language...
Could Round() perhaps be replaced with:
RoundUp(1234.56789,2) = 1234.57
RoundUp(123.45,0) = 123
Round(1234.56789,2) = 1234.57
Round(123.45,2) = 123.45
Round(123.45,0) = 123
RoundDown(1234.567,2) = 1234.56
RoundDown(1234.567,0) = 1234
- Obviously these can be done easily enough with Procedures, but it would be nice to have as part of the core language...