It converts string to number. use exec('str2num.sci',-1)to define function.
Upload date : 2016-04-21 13:59:35 MD5 : 0a385408ea4ebecea7963e4db0d4d3fe SHA1 : d6087efc6f5ef6ad46ddd95a629054e4ce09cae2 Downloads : 1496
Hello, Scilab already has eval(), evstr(), strtod()... https://help.scilab.org/docs/5.5.2/en_US/strtod.html https://help.scilab.org/docs/5.5.2/en_US/evstr.html https://help.scilab.org/docs/5.5.2/en_US/eval.html By the way, this str2num() implementation does not comply at all with Octave's one: -->str2num(['uint16(500)' '52:55']) ans = 7.539D+16 ???