RosettaCodeData/Task/Extreme-floating-point-values/Tcl/extreme-floating-point-values-2.tcl
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

7 lines
177 B
Tcl

% binary scan [binary format q nan] q nan
1
% puts $nan
NaN
% # Show that it is a real NaN in there
% expr {$nan+0}
can't use non-numeric floating-point value as operand of "+"