* adapted for systems with less max fpu precision than i386

This commit is contained in:
Jonas Maebe 2003-05-11 17:12:15 +00:00
parent 8bd6d64c35
commit a65af80143

View File

@ -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