realbasic-nug
[Top] [All Lists]

Re: double to string????

To: REALbasic Network Users Group <realbasic-nug@lists.realsoftware.com>
Subject: Re: double to string????
From: Markus Winter <markus_winter@online.de>
Date: Mon, 30 Jun 2008 21:02:14 +0200
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: <2570E826-6253-41D9-96EA-843250120E44@frontiernet.net>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thread-index: Acja486tDSTo3kbXEd28lgAX8sM2Tg==
Thread-topic: double to string????
User-agent: Microsoft-Entourage/11.4.0.080122
>> v as double
>> v = 12345678901234567890.1234567890
>> 
>> EF1.text = Format(v,
>> "- 
>> #########################################################.############
>> ####
>> ######################################")
>> 
>> produces
>> 
>> 12345678901234567168.
> 
> Markus, a double only offers, I believe, 17 digits of accuracy. You
> have exceeded that by a long shot. To handle a number like that would
> require a double double, a 16 byte double I believe. There is someone
> who offers an RB package that gives you basically unlimited number
> sizes as well as a ton of other mathematics but I cannot remember the
> authors name or the name of the package that he offers. I am sure
> someone else will remember.

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



_______________________________________________
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>