[Scilab-Dev] Big literal integers for int64() and uint64()

Samuel Gougeon sgougeon at free.fr
Tue Oct 30 14:24:43 CET 2018


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20181030/e8b49731/attachment.htm>


More information about the dev mailing list