On Mon, Sep 29, 2008 at 1:26 PM, Juerg Raess <juerg.raess@lehreroffice.ch>wrote:
> >Probably not a lot, since Str with floats should mainly be used for
> >debugging (you'd normally use CStr for anything shown to the user).
> >Still, it makes debugging less pleasant.
>
> I think to remember that both Str and CStr show now 15 digits.
> So even if we would have used CStr, the result would be the same.
> Maybe even worse if the user now sees 15 digits instead of 7...
> But I can't confirm this - I haven't updated my license yet at home :-)
>
Juerg and others,
We've increased the precision to 15 significant digits to maintain
compatibility with Visual Basic, as they also display up to 15 digits of
precision when using Str. Sorry that this was not documented anywhere, but
we'll definitely update our docs to reflect this change. We had some
inconsistent behavior before where we would return 7 significant digits if
you used Str or CStr, but up to 20 significant digits when converting a
variant value to a string. In all cases now, we return up to 15 significant
digits. We hope that the increased precision will be useful, but we do
apologize for the inconvenience that this may have caused some of you.
Regards,
William Yu
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|