* HELP: IEEE on AXP/VMS
@ 1996-02-13 5:00 Philippe Charman
[not found] ` <1996Feb13.192147.1@sldb6.slac.stanford.edu>
0 siblings, 1 reply; 2+ messages in thread
From: Philippe Charman @ 1996-02-13 5:00 UTC (permalink / raw)
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: HELP: IEEE on AXP/VMS
[not found] ` <1996Feb13.192147.1@sldb6.slac.stanford.edu>
@ 1996-02-14 5:00 ` fairfield
0 siblings, 0 replies; 2+ messages in thread
From: fairfield @ 1996-02-14 5:00 UTC (permalink / raw)
SORRY FOLKS, MAJOR FOUL_UP :-(
==========================
In article <1996Feb13.192147.1@sldb6.slac.stanford.edu>, I wrote:
> In article <1996Feb13.105651@ilog.fr>,
> charman@ilog.fr (Philippe Charman) writes:
>
>> 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.
> ^^^^^^^^^^^^^^^^^
> This is your problem, see below...
[...and a bunch of stuff about OpenVMS/Alpha using F_float and G_float...]
While OpenVMS/Alpha uses F_float and G_float _by default_, both
DEC C and DEC Fortran support compiler qualifiers to use IEEE format
internally. I presume other languages do as well. I plead
ignorance of using any IEEE features on VMS. ;^p
Sorry folks,
Ken
--
Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu
SLAC, P.O.Box 4349, MS 46 | DECnet: 45537::FAIRFIELD (45537=SLACVX)
Stanford, CA 94309 | Voice: 415-926-2924 FAX: 415-926-3515
-------------------------------------------------------------------------
These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-02-14 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-13 5:00 HELP: IEEE on AXP/VMS Philippe Charman
[not found] ` <1996Feb13.192147.1@sldb6.slac.stanford.edu>
1996-02-14 5:00 ` fairfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox