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
atof
atoi
stdlib.h
In my case, this code worked:
set a [string trimleft $a 0]