A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Loss of precision when converting int to float
Joined: Feb 11, 2005
May 11, 2005 00:07:00
output is :f2 9.4444442E8
output is :f2 9.4444448E7
Note that in frist case there are 9 digits while in second case its 8 digits..
pls explain the output
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Loss of precision when converting int to float
Float and ==
whats the difference between float & double
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013