Sign in Join

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

Mailing lists / fpc-pascal / 2003-09

CardinalToStr

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Vincent Snijders

Hi,

Has FPC functions for the cardinal type like IntToStr? The snippet below produces quiet understandably -2147483647 instead of 2147483649.

program hasCardinalToStr;
const
  c2 = Cardinal($80000001);
begin
  writeln(IntToStr(c2));
end.

Regards,
Vincent.

Peter Vreman
to Vincent Snijders
you wrote 12 lines
Hi, Has FPC functions for the cardinal type like IntToStr? The snippet below produces quiet understandably -2147483647 instead of 2147483649. program hasCardinalToStr; const c2 = Cardinal($80000001); begin writeln(IntToStr(c2)); end.

Cardinal/Int64 constants only work in 1.1

Peter