mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 08:30:58 +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)
|
Result := FloatToStrF(LValue, ffFixed, 20, DecimalPlaces, FFS)
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
if (Abs(LValue) > 10**FExponentialFormatLimitPos) or
|
if (Abs(LValue) > Power(10,FExponentialFormatLimitPos)) or
|
||||||
(Abs(LValue) > 10**FExponentialFormatLimitNeg) then
|
(Abs(LValue) < Power(10,FExponentialFormatLimitNeg)) then
|
||||||
Result := FloatToStrF(GetLimitedValue(AValue), ffExponent, FPrecision, DecimalPlaces, FFS)
|
Result := FloatToStrF(GetLimitedValue(AValue), ffExponent, FPrecision, DecimalPlaces, FFS)
|
||||||
else
|
else
|
||||||
Result := FloatToStrF(LValue, ffFixed, 20, DecimalPlaces, FFS)
|
Result := FloatToStrF(LValue, ffFixed, 20, DecimalPlaces, FFS)
|
||||||
|
Loading…
Reference in New Issue
Block a user