mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 14:59:11 +02:00
LazControls: fix TFloatSpinEditEx.ValueToStr.
git-svn-id: trunk@63700 -
This commit is contained in:
parent
e6dcde11e5
commit
c5e931129d
@ -468,8 +468,8 @@ begin
|
||||
Result := FloatToStrF(LValue, ffFixed, 20, DecimalPlaces, FFS)
|
||||
else
|
||||
begin
|
||||
if (Abs(LValue) > 10**FExponentialFormatLimitPos) or
|
||||
(Abs(LValue) > 10**FExponentialFormatLimitNeg) then
|
||||
if (Abs(LValue) > Power(10,FExponentialFormatLimitPos)) or
|
||||
(Abs(LValue) < Power(10,FExponentialFormatLimitNeg)) then
|
||||
Result := FloatToStrF(GetLimitedValue(AValue), ffExponent, FPrecision, DecimalPlaces, FFS)
|
||||
else
|
||||
Result := FloatToStrF(LValue, ffFixed, 20, DecimalPlaces, FFS)
|
||||
|
Loading…
Reference in New Issue
Block a user