Changeset 5032
- Timestamp:
- Feb 19, 2015, 8:25:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/uiuc_vtk_viewers/gui/scripts/gauge.tcl
r3733 r5032 236 236 } 237 237 real { 238 239 240 241 242 243 238 # "scan" will reject the number if the string is "NaN" or 239 # "Inf" or the empty string. It also is accepts large numbers 240 # (e.g. 111111111111111111111) that "string is double" 241 # rejects. The problem with "scan" is that it doesn't care if 242 # there are extra characters trailing the number (eg. "123a"). 243 # The extra %s substitution is used to detect this case. 244 244 if { [scan $nv "%g%s" dummy1 dummy2] != 1 } { 245 245 error "bad value \"$nv\": should be a real number"
Note: See TracChangeset
for help on using the changeset viewer.