<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
Le 30/10/2018 à 13:51, Clément David a écrit :<br>
</div>
<blockquote
cite="mid:AM6PR0502MB370204A888D765F37466B7F3B0CC0@AM6PR0502MB3702.eurprd05.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
tt
{mso-style-priority:99;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas",serif;
color:black;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;}
span.EmailStyle22
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hello
all, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-US">Nice implementation ! IMHO `double()` might
also be extended to support a string,</span></p>
</div>
</blockquote>
<br>
The question is: What to do? With wich features?<br>
It would be a nice replacement of strtod(). IMO, it should in no way
duplicate it.<br>
<br>
But is it really a priority?<br>
There are already too many functions all doing rather the same
thing, and rather weakly:<br>
strtod(), msscanf(), evstr() (and still eval().. whose removal is <a
href="https://codereview.scilab.org/19797">not yet merged</a>).<br>
<br>
However, there are certainly priorities in matter of string
conversion. Noticeably,<br>
currently, there is no way to read imaginary parts of complex
numbers<br>
as text, and convert them into numeric type.<br>
<br>
You may have a look at a (still) vain analysis at <a
href="http://bugzilla.scilab.org/4401">http://bugzilla.scilab.org/4401</a><br>
As well, supporting hexa and octal string input is requested for
msscanf()<br>
there <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/8905">http://bugzilla.scilab.org/8905</a> . These formats are also
discussed as strtod()<br>
possible input (with the same tolerance (and output) about any
trailing part),<br>
in the bug 4401 report.<br>
<br>
Bets regards<br>
Samuel<br>
<br>
</body>
</html>