|
@@ -2452,7 +2452,7 @@ Begin
|
|
Else If Digits > 18 Then
|
|
Else If Digits > 18 Then
|
|
Digits := 18;
|
|
Digits := 18;
|
|
Str(Value:0:Digits, Result);
|
|
Str(Value:0:Digits, Result);
|
|
- // Writeln('1. Result ',Result,' currencystring : ',CurrencyString);
|
|
|
|
|
|
+ // Writeln('1. Result ',Result,' currencystring : ',CS);
|
|
Negative:=Result[1] = '-';
|
|
Negative:=Result[1] = '-';
|
|
if Negative then
|
|
if Negative then
|
|
System.Delete(Result, 1, 1);
|
|
System.Delete(Result, 1, 1);
|
|
@@ -2467,11 +2467,11 @@ Begin
|
|
Dec(P, 3);
|
|
Dec(P, 3);
|
|
While (P > 1) Do
|
|
While (P > 1) Do
|
|
Begin
|
|
Begin
|
|
- Insert(DS, Result, P);
|
|
|
|
|
|
+ Insert(TS, Result, P);
|
|
Dec(P, 3);
|
|
Dec(P, 3);
|
|
End;
|
|
End;
|
|
end;
|
|
end;
|
|
- // Writeln('3. Result ',Result,' currencystring : ',CurrencyString);
|
|
|
|
|
|
+ // Writeln('3. Result ',Result,' currencystring : ',CS);
|
|
if Negative then
|
|
if Negative then
|
|
RemoveLeadingNegativeSign(Result,DS,TS);
|
|
RemoveLeadingNegativeSign(Result,DS,TS);
|
|
// Writeln('4. Result ',Result,' currencystring : ',CurrencyString);
|
|
// Writeln('4. Result ',Result,' currencystring : ',CurrencyString);
|