From: <and...@us...> - 2008-09-03 19:59:23
|
Revision: 8747 http://plplot.svn.sourceforge.net/plplot/?rev=8747&view=rev Author: andrewross Date: 2008-09-03 19:59:31 +0000 (Wed, 03 Sep 2008) Log Message: ----------- Update tcl isnan test in example 21 to work on Linux. Modified Paths: -------------- trunk/examples/tcl/x21.tcl Modified: trunk/examples/tcl/x21.tcl =================================================================== --- trunk/examples/tcl/x21.tcl 2008-09-03 09:42:31 UTC (rev 8746) +++ trunk/examples/tcl/x21.tcl 2008-09-03 19:59:31 UTC (rev 8747) @@ -242,9 +242,10 @@ # # Note: the current string interface makes it necessary to check for the # special string "-1.#IND" - at least with MSVC 6.0 +# On linux it looks like the relevant string is nan. # proc isnan {x} { - if {$x == NaN || $x eq "-1.#IND"} { + if {$x == NaN || $x eq "nan" || $x eq "-1.#IND"} { return 1 } else { return 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |