Name
GetInt
- tixGetInt
[-nocomplain] [-trunc]
string
Convert string into an integer if it is a valid Tcl numerical value. Otherwise, an err or is generated unless -nocomplain is specified, in which case a 0 is returned. By default, the value is rounded to the nearest integer. If -trunc is specified, the value is truncated instead.
Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.