[Oberon] [EXT] Re: Wrong output of Texts.WriteReal and Texts.WriteRealFix in PO

Joerg joerg.straube at iaeth.ch
Sun Oct 4 09:38:56 CEST 2020

> I suspect the floating-point hardware itself isn't fit for
> IEEE 754
You‘re right; NaN (NaNs and NaNq) is not implemented in RISC5.
Converting correctly strings to/from floating is surprisingly an extremely difficult task.

One quick remark:
It is true that FLOOR cannot handle values >MAX (2^31-1=2147483647) as those values cannot be stored in an RISC-5 INTEGER.
Remember that on RISC-5 i = FLOOR(FLT(i)) is not guaranteed to be true for INTEGERs i > 16777216


More information about the Oberon mailing list