realbasic-nug
[Top] [All Lists]

Re: double to string????

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: double to string????
From: Kirk Gray <develop@kirkgray.com>
Date: Mon, 30 Jun 2008 13:18:51 -0600
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <C48EFA56.4EB33%markus_winter@online.de>
References: <C48EFA56.4EB33%markus_winter@online.de>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
On Jun 30, 2008, at 1:02 PM, Markus Winter wrote:

I think a double should easily hold a 20 digit number. Otherwise it would be
the worst implementation in any programming language ever.

RealBasic, like most languages in recent memory and the floating point hardware in most CPUs, uses IEEE 754 floating point numbers. The Double precision (64-bit) floating point numbers are limited to about 16 or 17 decimal places of accuracy. Other language may appear to give you more digits, but in most cases these digits aren't accurate to any degree (unless you're using a language or data type specifically designed to give greater accuracy, such as the Decimal type from Bob Delaney).

————————————————
Kirk Gray
REALbasic Professional 2008r2
MacBook Core 2 Duo, OS X 10.5.3
Power Mac dual G4, OS X 10.4.11



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>