[Oberon] Question about SYSTEM.BIT() in Oberon-7

Robert Doiel rsdoiel at gmail.com
Sat Jun 5 04:48:31 CEST 2021


Thank you Chris and Jurg,

This has been very helpful.  I did not realize that UNPK and PACK were 
for that purpose! It is all slowly  becoming clearer to me.

Thanks again for everyone's help.

All the best,

Robert

On 6/4/21 5:36 PM, Chris Burrows wrote:
> On Sat, Jun 5, 2021 at 8:39 AM R. S. Doiel <rsdoiel at gmail.com> wrote:
>> That's cool. So what I was thinking of doing is to read the address contents of my REAL variable into an INTEGER then use SYSTEM.BIT() to report out the sign, the exponent and the fraction.  Reading Reals.IntL gave that idea.
>>
> Note that Oberon-07 has predefined procedures PACK and UNPK which
> provide convenient access to the exponent and mantissa of a REAL
>
> Chris Burrows
> CFB Software
> https://www.astrobe.com/RISC5
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon


More information about the Oberon mailing list