Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Retrieve float number from mysql dbby bitingduck (Chaplain) |
on Oct 17, 2015 at 03:20 UTC ( [id://1145174]=note: print w/replies, xml ) | Need Help?? |
Wikipedia also has more details on the limits of precision of 4 byte floats: Single Precision Floating Point. You can only store integers with less than 6 significant digits of precision with the guarantee that you won't suffer approximation. If you need the precision, make sure you choose a type that supports it, and be aware that floating point can get approximated different ways in different implementations that both comply with the same standard.
In Section
Seekers of Perl Wisdom
|
|