[Oberon] real math

oberon at moravcik.info oberon at moravcik.info
Sun Nov 9 20:35:47 CET 2014


Hi,

following code returns imprecise real number:

 r : REAL;

 r := 480 / 100 * 100;
 out.Int( ENTIER(r * 1000000) , 0 );

outputs 48000019 instead of 48000000

How to check that 480/100*100 is 480 again ?

Thanks
Zdenek



More information about the Oberon mailing list