kyh74
asked on
undesire rounding off of floating number automatically
i declare a variable as a floating number but when i assign a value of eg. 999999.99 it will be automatically round off to 1000000.00, is there a way to show the actual figure.
someone pls help, Thanks
someone pls help, Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
in general float has 6 significant digits and double has 15 signifacant digits.