Hi Eric,
Iam facing a peculiar problem with rounding number,iam using below function for rounding number and both parameter of my function is coming from database depends on some conditions.Now my problem is my function is working fine as per my requirement accept the number which is above 5000000 and only in case of rounding position after decimal and that value of number is greater than and equal five.
For example :-
Suppose number is 50000000.61994824 and round place is -2 then my function rounded the number to 50000000.62 and it is working fine with any value of round place.
But if the number is 51000000.61994824 and round place is -2 then my function rounded the number to 51000000.620000005 which is wrong rounded number, rounded number should be 51000000.62.I have tested with different negative value of round place if that value of number is greater than and equal five then only it is giving me problem but if that value of number is smaller than five then it is working fine.And my function also working fine with all positive value of round place with any number.
Can you please
test my function with my above given number and please guide me how i can slove this problem.
Thanks & Regards
Bikash
[ March 17, 2004: Message edited by: Bikash Paul ]