Bug #388

FormatDouble(x) uses 10 digits precision -- too few for Xmlize

Added by Massimo Del Fedele almost 12 years ago. Updated over 11 years ago.

Status:ApprovedStart date:12/25/2012
Priority:HighDue date:
Assignee:Iñaki Zabala% Done:

100%

Category:CoreSpent time:-
Target version:-

Description

Streaming out double values with Xmlize leads to a call to FormatDouble(x), which in turn uses

String FormatDouble(double a) { return IsNull(a) ? String() : IsNaN(a) ? "?" : FormatDouble(a, 10, FD_REL); }

Loosing so 5 of the 15 precision digits of double values.
In some precision sensitive apps this is just not enough; I'd suggest, either to change the default digits
of FormatDouble(x) to 15 or to use the extended version with 15 digits when streaming out xml data.
Another nice option would be to provide some global setting value to allow change of default number of digita.

Max

History

#1 Updated by Miroslav Fidler almost 12 years ago

  • Status changed from New to Ready for QA
  • Assignee changed from Miroslav Fidler to Iñaki Zabala

Fixed be increasing precision of FormatDouble.

#2 Updated by Iñaki Zabala over 11 years ago

  • Status changed from Ready for QA to Approved
  • % Done changed from 0 to 100

Also available in: Atom PDF