[Issue 3248] lossless floating point formatting

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 7 05:02:18 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3248



--- Comment #11 from Don <clugdbug at yahoo.com.au> 2009-09-07 05:02:15 PDT ---
(In reply to comment #10)
> > Neither. It's the number of sic figs which are accurate in the worst case. So
> > it's the _minimum_ number of digits which are stored. To unambiguously define
> > the number, more digits are almost always required.
> 
> So, if you try to put a decimal number into a float, it's how many s.f. you can
> get out again and be sure they'll be the same.  I don't see in what cases this
> differs from "the number of s.f. to which numbers are guaranteed to be
> storeable unambiguously"....

It may be the same. I wasn't quite sure what you meant by "unambiguously". In
both directions binary<->decimal there is nearly always more than one choice.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list