You've already forked lazarus-ccr
fpspreadsheet: Reduce max count of digits in general number format (15 --> 14, like in Calc, Excel only has 9)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7153 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1113,8 +1113,9 @@ end;
|
|||||||
function GeneralFormatFloat(AValue: Double;
|
function GeneralFormatFloat(AValue: Double;
|
||||||
AFormatSettings: TFormatSettings): String;
|
AFormatSettings: TFormatSettings): String;
|
||||||
begin
|
begin
|
||||||
Result := FloatToStrF(AValue, ffGeneral, 16, 16, AFormatSettings);
|
Result := FloatToStrF(AValue, ffGeneral, 15, 15, AFormatSettings);
|
||||||
// 16 is for best rounding results
|
// 15 is for best rounding results.
|
||||||
|
// Note: Still more than Excel whichrounds pi to 9 digits only.
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user