From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 7 Feb 2010 11:12:00 -0500 To: 9fans@9fans.net Message-ID: <8b3a3300aaabab272edb6dc24e6091d0@ladd.quanstro.net> In-Reply-To: <2576c2.2c8ec300.jiSO.mx@tumtum.plumbweb.net> References: <2576c2.1a8ca4f7.1333.mx@tumtum.plumbweb.net> <2576c2.2c8ec300.jiSO.mx@tumtum.plumbweb.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re: [9fans] NaN, +Inf, and -Inf, constants? Topicbox-Message-UUID: cf3ebd06-ead5-11e9-9d60-3106f5b1d025 > On the other hand, the assignment of NaN to a double depends on the fcr. > (And on my machine, curiously changes 0x7ff0...1 to 0x7ff8...1). http://en.wikipedia.org/wiki/NaN explains the difference between a signaling nan and a quiet nan (the latter). > So if I think of enum definitions as assignment, it makes sense, mostly. how does a non-constant enum make sense? more to the point, in porting code, you're going to have to work out how to deal with NaNs. plan 9 defaults to using signaling nans, unless you manually change the fcr. this is good because it avoids bad conversions. on the other hand, your application may require and depend on the ability to pass around nan and ±inf. - erik