Changeset 5032


Ignore:
Timestamp:
Feb 19, 2015 8:25:52 AM (5 years ago)
Author:
dkearney
Message:

fix spacing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/uiuc_vtk_viewers/gui/scripts/gauge.tcl

    r3733 r5032  
    236236            }
    237237            real {
    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.
     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.
    244244                if { [scan $nv "%g%s" dummy1 dummy2] != 1 } {
    245245                    error "bad value \"$nv\": should be a real number"
Note: See TracChangeset for help on using the changeset viewer.