http://d.puremagic.com/issues/show_bug.cgi?id=3248
--- Comment #8 from Stewart Gordon <s...@iname.com> 2009-09-07 02:58:19 PDT --- (In reply to comment #4) > As far as I understand it, removing trailing zeros from .8 precision and (c) > are the same. I doubt it ... I think the optimal number of decimal s.f. would depend on the binary exponent. But I'll experiment when I have time. > I remember .dig being 6 for all floats (could be wrong here, not close to any > dmd.exe) The spec describes .dig as "number of decimal digits of precision", which seems ambiguous. Is it a property of the type or the value? If it's a type property, is it the maximum number of s.f. that may be required to express a number of the type unambiguously, or the number of s.f. to which numbers are guaranteed to be storeable unambiguously? If a value property, it is the number of s.f. according to which of the approaches I listed, or something else? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------