Link to home
Start Free TrialLog in
Avatar of kyh74
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
ASKER CERTIFIED SOLUTION
Avatar of rbr
rbr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rbr
rbr

in general float has 6 significant digits and double has 15 signifacant digits.