On Wed, 2002-06-05 at 10:56, Johnathan Smith wrote:
> Can someone please help me I am getting a number like
> "19.47582" and I only
> need "19.47"

Floating point arithmetic is not able to represent an infinite number of
real numbers in a finite number of bits, which can result in inexact
calculations. If you're planning to represent currency and require exact
decimals, you should use integers.

-- 
Dave Carrigan
Seattle, WA, USA
[EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to