summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0460.pp
blob: 4f8e3819a87e0e8ab827105aff69688d03df7628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const
  MinCurrency : Currency = -922337203685477.5807;
  MaxCurrency : Currency = 922337203685477.5807;

var
  s : string;

begin
  str(MinCurrency:0:4,s);
  if s<>'-922337203685477.5807' then
    begin
      writeln(s);
      halt(1);
    end;
  str(MaxCurrency:0:4,s);
  if s<>'922337203685477.5807' then
    begin
      writeln(s);
      halt(1);
    end;
end.