snowingnow
Programmer
Hello, how can i trancate all the leading 0(ZERO)s in a string? what fucntion should i use?Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Tcl documentation said:string trimleft string ?chars?
Returns a value equal to string except that any leading characters present in the string given by chars are removed. If chars is not specified then white space is removed (spaces, tabs, newlines, and carriage returns).
string trimleft [green][i]$yourStringVariable[/i][/green] "0"