I think this would be excellent (and overdue). It needs to support double and
long double (and facilitate UDTs too if possible).

There is also the matter of signalling and quiet NaN. Although signalling NaN
may cause an hardware exception if enabled, I suspect it is more useful if isnan
returns ture for both types of NaN.  At least we should make this clear.  I
think this is what MSVC 7.1 does but the documentation is thin.

There is also a single IEEE FP pattern called 'indeterminate' or what Intel call
'NotAVal" (ox1fffe000...) which might become useful as a Portable Standard
"missing value" marker if portably supported?

And can anyone help with allowing one to easily customise the display of NaNs?
(and infs, max, min...?) I believe that a new (derived) num_put facet is the way
to do this.  Does anyone have an actual implementation of this to contribute
too?

Paul

Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB  UK
+44 1539 561830   Mobile +44 7714 33 02 04
Mobile mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


| -----Original Message-----
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED] Behalf Of Joel de Guzman
| Sent: Monday, July 07, 2003 5:15 PM
| To: Boost mailing list
| Subject: Re: [boost] Re: Re: is_nan
|
|
| Fernando Cacciola <[EMAIL PROTECTED]> wrote:
| > Fernando Cacciola <[EMAIL PROTECTED]> wrote in message
| > news:[EMAIL PROTECTED]
| >>
| >> Thanks to Gabriel we may have an is_nan() right now.
| >>
| > Oops!
| > It was Joel de Guzman who offered his is_nan() implementation.
| >
| > Sorry Joel :-)
|
| No problem. I thought Gaby also offered an implementation ahead of me.
| So you guys are interested then? It would really be nice to have a
| common boost implementation. I'll put it in the sandbox tomorrow.
|
| --
| Joel de Guzman
| joel at boost-consulting.com
| http://www.boost-consulting.com
| http://spirit.sf.net
|
| _______________________________________________
| Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
|
|

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to