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.

You may have a look at a (still) vain analysis at http://bugzilla.scilab.org/4401
As well, supporting hexa and octal string input is requested for msscanf()
there http://bugzilla.scilab.org/8905 . These formats are also discussed as strtod() possible input (with the same tolerance (and output) about any trailing part),
in the bug 4401 report.

Bets regards
Samuel

_______________________________________________
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to