mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-01 13:29:32 +00:00
Print floating constants with more precision in #pragma expand output.
Finite numbers should now be printed with sufficient precision to produce the same value as the original constant in the relevant type.
This commit is contained in:
parent
83ac0ecebf
commit
44a1ba5205
@ -865,11 +865,11 @@ case token.kind of
|
||||
end;
|
||||
|
||||
compConst,
|
||||
doubleConst: write(token.rval:1);
|
||||
doubleConst: write(token.rval:24);
|
||||
|
||||
floatConst: write(token.rval:1,'F');
|
||||
floatConst: write(token.rval:16,'F');
|
||||
|
||||
extendedConst: write(token.rval:1,'L');
|
||||
extendedConst: write(token.rval:29,'L');
|
||||
|
||||
stringConst: begin
|
||||
if token.prefix = prefix_u16 then begin
|
||||
|
Loading…
Reference in New Issue
Block a user