Le 30/10/2018 à 14:24, Samuel Gougeon a écrit :
Hello,
Le 30/10/2018 à 13:51, Clément David a écrit :
Hello all,
Nice implementation ! IMHO `double()` might also be extended to
support a string,
The question is: What to do? With wich features?
It would be a nice replacement of strtod(). IMO, it should in no way
duplicate it.
But is it really a priority?
There are already too many functions all doing rather the same thing,
and rather weakly:
strtod(), msscanf(), evstr() (and still eval().. whose removal is not
yet merged <https://codereview.scilab.org/19797>).
However, there are certainly priorities in matter of string
conversion. Noticeably,
currently, there is no way to read imaginary parts of complex numbers
as text, and convert them into numeric type.
csvTextScan() (another guy..) does it. It is definitely not emphasized
in its description.
It has only a small not-illustrated example. But it does it.
Samuel
_______________________________________________
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev