TDecimal fix

This commit is contained in:
Michael Schimmel
2025-09-12 16:21:45 +02:00
parent 17c5b90ecf
commit a36ca2c7e3
+1 -3
View File
@@ -254,9 +254,7 @@ end;
class operator TDecimal.Explicit(const A: TDecimal): Double;
begin
var scale := A.GetScale;
var value := A.GetValue;
Result := value / PowersOf10[scale];
Result := A.GetValue / PowersOf10[A.GetScale];
end;
class function TDecimal.MaxValue(AScale: TScale): TDecimal;