Is there an equivalent in Tcl of 'string to X' functions found in C stdlib.h?

后端 未结 5 1433
南旧
南旧 2021-01-19 17:50

There are standard functions such as atof and atoi in C\'s stdlib.h for converting strings to floats / integers (and to do the reverse

5条回答
  •  星月不相逢
    2021-01-19 18:43

    I should note as well that equivatents to atof and atoi can be viewed as conversion of internal Tcl data structures to external binary representations. This is done by the [binary format] command.

提交回复
热议问题