Roland Mainz wrote: > Does Sun Studio (and/or gcc) have a function to extract the payload of a > |NaN| value ?
BTW: See http://en.wikipedia.org/wiki/NaN#Displaying_NaN for the description of the "payload". The idea is that the IEEE754 format allows to transport an additional integer value in a NaN value, e.g. a "payload" of |12345| would be represented as "NaN12345" (in string form). For Sun Studio http://docs.sun.com/source/817-0932/ncg_lib.html#52580 lists |value = quiet_nanf(0)| to create a |NaN| value but using a different value than |0| doesn't seem to have any effect. And there seems to be no function to extract this value from the value of |NaN| ... ;-( ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;)
