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:24:22 +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: <4734916E-BC76-4027-8882-B1DC2A728F12@inspiringapps.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thread-index: Acja5uY6JNPbkEbaEd28lgAX8sM2Tg==
Thread-topic: double to string????
User-agent: Microsoft-Entourage/11.4.0.080122
> Write instead:
> 
>   EF1.text = Format(v, "-#.#")
> 
> which is equivalent but much shorter and clearer.

Did that - same result
 
> Oh, and I suspect that you've assigned a value to "v" which is not
> representable by a double -- looks like too many digits there, though
> I'm not sure.

I'm aware of precicion problems - however in the example it's not the
decimal points which are changed but the numbers BEFORE the decimal point go
missing!



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