From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,93a1c34ef2fd6799,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,93a1c34ef2fd6799,start X-Google-Attributes: gid1164f8,public From: charman@ilog.fr (Philippe Charman) Subject: HELP: IEEE on AXP/VMS Date: 1996/02/13 Message-ID: <1996Feb13.105651@ilog.fr>#1/1 X-Deja-AN: 139302415 sender: news@ilog.fr organization: ILog S.A. (Gentilly, France) newsgroups: comp.sys.dec,comp.os.vms -- I am working on a AXP/VMS and I wrote two functions for changing the rounding mode. They work well with any numbers except when underflows occur. I've set the correct mask to the Floating-Point Control Register to specify that underflows must not be mapped to 0.0 I've specified the correct options for the compiler also. When an underflow occurs, the result is always the true zero even if I have set the rounding mode to plus infinity. Actually, I except that: 1) setting the rounding mode to plus infinity 2) and for instance multiplying 1e-200 by itself will give the minimal normalized floating-point number i.e. ~2.2e-308 This is specified in the IEEE-754 standard I think. Could someone tell me if on an AXP/VMS with the rouding mode set to plus infinity, (positive) underflows are rounded to ~2.2e-308 or to 0.0 Thanx a lot in advance, Phil. PS: On an AXP/OSF, it works well, i.e. with the rouding mode set to plus infinity, (positive) underflows are rounded to ~2.2e-308 Philippe CHARMAN net: charman@ilog.fr ILOG S.A. tel: +33 1 49 08 35 59 9, rue Verdun - BP 85 fax: +33 1 49 08 35 10 F-94253 Gentilly Cedex - FRANCE url: http://www.ilog.fr