Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-07

Re: Maybe repeat: currency type broken in 2.0.1

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Tony Maro: I tried to send this last night, but my phones and DSL were extremely flaky and I never…
Tony Maro wrote 19 lines
I tried to send this last night, but my phones and DSL were extremely flaky and I never saw it arrive on the list. I've been using the currency type for a few months now. On 2.0.0 it seemed to work fine. I have recently updated to 2.0.1 and you can't do: var MyCurrency: Currency; begin CurrencyFormat := 0; // optional? It's my default anyway. MyCurrency := 12.53; writeln(MyCurrency); // this works writeln(format('%n',[MyCurrency])); // this doesn't end; It throws a bad parameter in format error, but the currency variable itself works fine as does the first writeln. Should I add this to the bugtracker, or is it just me?

Please add it to the bug tracker, so it won't be forgotten.

Michael.

Reply by email

Tony Maro

I tried to send this last night, but my phones and DSL were extremely flaky and I never saw it arrive on the list.

I've been using the currency type for a few months now. On 2.0.0 it seemed to work fine. I have recently updated to 2.0.1 and you can't do:

var
    MyCurrency: Currency;
begin
    CurrencyFormat := 0; // optional? It's my default anyway.
    MyCurrency := 12.53;
    writeln(MyCurrency); // this works
    writeln(format('%n',[MyCurrency])); // this doesn't
end;

It throws a bad parameter in format error, but the currency variable itself works fine as does the first writeln.

Should I add this to the bugtracker, or is it just me?

-Tony Maro

Reply by email