blob: ea3a4aca1f018aeac25e91811347ba568b257ca0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
uses
math;
var
s : string;
Begin
{$ifdef FPC_HAS_TYPE_EXTENDED}
str(intpower(2,63),s);
if s<>' 9.2233720368547758E+0018' then
begin
WriteLn(intpower(2,63));
halt(1);
end;
{$endif FPC_HAS_TYPE_EXTENDED}
{$ifdef FPC_HAS_TYPE_DOUBLE}
str(double(intpower(2,63)),s);
{$ifdef FPC_HAS_TYPE_EXTENDED}
if s<>' 9.22337203685478E+018' then
{$else FPC_HAS_TYPE_EXTENDED}
if s<>' 9.22337203685478E+018' then
{$endif FPC_HAS_TYPE_EXTENDED}
begin
WriteLn(double(intpower(2,63)));
halt(1);
end;
{$endif FPC_HAS_TYPE_DOUBLE}
end.
|