From: Alex DeCaria Date: 2010-04-02T05:39:09+09:00 Subject: Re: Is there a method to set variable to NaN or Infinity? > I'm curious: which languages have a -NaN value and why would you want > to use it instead of just NaN? I do a lot of my scientific programming in IDL. It allows explicit assignment of NaN and -NaN to floating point variables, as well as returns -NaN under certain circumstances. IDL is used for a lot of image processing, and being able to have NaN and/or -NaN is useful as a mask when processing the arrays. --Alex -- Posted via http://www.ruby-forum.com/.