mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 22:49:37 +02:00
* adapted for systems with less max fpu precision than i386
This commit is contained in:
parent
8bd6d64c35
commit
a65af80143
@ -66,7 +66,12 @@ begin
|
||||
f := -1.12345;
|
||||
{$IFOPT E-}
|
||||
str(f,s);
|
||||
check('-1.123450000000000E+000');
|
||||
if sizeof(f) = 10 then
|
||||
check('-1.123450000000000E+000')
|
||||
else if sizeof(f) = 8 then
|
||||
check('-1.12345000000000E+000')
|
||||
else
|
||||
check('error, not yet implemented!!!!');
|
||||
{$endif}
|
||||
{ the number of exponents depends on the maaping of the real type }
|
||||
if sizeof(real) = 8 then
|
||||
@ -244,7 +249,12 @@ begin
|
||||
f := -1.12345;
|
||||
{$IFOPT E-}
|
||||
str(f,s);
|
||||
check('-1.123450000000000E+000');
|
||||
if sizeof(f) = 10 then
|
||||
check('-1.123450000000000E+000')
|
||||
else if sizeof(f) = 8 then
|
||||
check('-1.12345000000000E+000')
|
||||
else
|
||||
check('error, not yet implemented!!!!');
|
||||
{$endif}
|
||||
{ the number of exponents depends on the maaping of the real type }
|
||||
if sizeof(real) = 8 then
|
||||
@ -423,7 +433,12 @@ begin
|
||||
f := -1.12345;
|
||||
{$IFOPT E-}
|
||||
str(f,s);
|
||||
check('-1.123450000000000E+000');
|
||||
if sizeof(f) = 10 then
|
||||
check('-1.123450000000000E+000')
|
||||
else if sizeof(f) = 8 then
|
||||
check('-1.12345000000000E+000')
|
||||
else
|
||||
check('error, not yet implemented!!!!');
|
||||
{$endif}
|
||||
{ the number of exponents depends on the maaping of the real type }
|
||||
if sizeof(real) = 8 then
|
||||
|
Loading…
Reference in New Issue
Block a user