Re: FLOAT type arithmetic SUXX ?
Posted in 1995
We have SCO UNIX 3.2.4, 4GL-RDS 4.10.UC3. It works fine. * Configuration is SCO UNIX v3.2.5, 4GL-RDS & ID v4.10.UC1. * * define * f1, f2, s float * * let f1 = 10000000 # any number from 9215004 to 18438375 with any * fraction * let f2 = 9000.20 # any number from 8192 to 9999 * # with 2,3,7 or 8 after the decimal point * let s=f1+f2 * * The result is ... 8421408.00 ???!!! * * Can someone tell me what's going on ? * * With regards, * Wlodek Futrega * * +--------------------------------------------------------------------------+ * | Wlodek Futrega, E-mail: wlodek@aquila.ichp.waw.pl | * | SoftProdukt Ltd. Fax: +48 022 23-83-78 | * | Warsaw, Poland. Phone: +48 022 33-27-16 | * +--------------------------------------------------------------------------+ * * Robert Minter Data Systems Support \\\\\\_/// Senior Software Engineer A Client Technologies Company ( _ _ ) E-Mail: rob@dssmktg.com Tel: 714.771.0454 (| ^ |) #include <disclaimer.h> Fax: 714.771.3028 \\`-'/ De Colores - Emmaus OC-13 SURF'S UP \\_/