mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 17:01:21 +02:00
* fixed webtbs/tw10519.pp for CPUs which don't support extended
git-svn-id: trunk@9893 -
This commit is contained in:
parent
bfd667e289
commit
200f1e5643
@ -1992,7 +1992,18 @@ Var
|
||||
Placehold[1]:=1;
|
||||
Decimals := Placehold[3] + Placehold[4];
|
||||
Width:=Placehold[1]+Placehold[2]+Decimals;
|
||||
{ depending on the maximally supported precision, the exponent field }
|
||||
{ is longer/shorter }
|
||||
{$ifdef FPC_HAS_TYPE_EXTENDED}
|
||||
Str(Value:Width+8,Digits);
|
||||
{$else FPC_HAS_TYPE_EXTENDED}
|
||||
{$ifdef FPC_HAS_TYPE_DOUBLE}
|
||||
Str(Value:Width+7,Digits);
|
||||
{$else FPC_HAS_TYPE_DOUBLE}
|
||||
Str(Value:Width+6,Digits);
|
||||
{$endif FPC_HAS_TYPE_DOUBLE}
|
||||
{$endif FPC_HAS_TYPE_EXTENDED}
|
||||
|
||||
{ Find and cut out exponent. Always the
|
||||
last 6 characters in the string.
|
||||
-> 0000E+0000
|
||||
|
Loading…
Reference in New Issue
Block a user