[Bugzilla] [Bug 4401] Samuel GOUGEON has changed short_desc

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Mon Mar 5 03:18:53 CET 2018


http://bugzilla.scilab.org/show_bug.cgi?id=4401
--------- Bug Summary -----------
isnum("%pi") returns %T, but isnum("%e") returns %F, and isnum("%pi+1") returns (and strtod() policy)

---------- Changed by ------------
sgougeon at free.fr

---------- What changed ----------
short_desc


Samuel GOUGEON <sgougeon at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|isnum("%pi") returns %T,    |isnum("%pi") returns %T,
                   |but isnum("%e") returns %F, |but isnum("%e") returns %F,
                   |and isnum("%pi+1") returns  |and isnum("%pi+1") returns
                   |                            |(and strtod() policy)

--- Comment #27 from Samuel GOUGEON <sgougeon at free.fr> ---
Present status with Scilab 6.0-b1:

--> Txt = [ 
  > "%nan" "nan" "-NaN"  "inf" "-INF" "-%inf + i"
  > "-%pi" "%pi+1" "2*%pi"  "%pi*2" "%e" "%i"
  > "I" "-i" "2i" "-2i" "2*%i" "%i*2"
  > "1-i" "-2 - 3i" "+3.e-321" "-1.3" "+.4" "- 3.3D+32 + 234.1 i"
  > ]
 Txt  = 

!%nan  nan      -NaN      inf    -INF  -%inf + i            !
!                                                           !
!-%pi  %pi+1    2*%pi     %pi*2  %e    %i                   !
!                                                           !
!I     -i       2i        -2i    2*%i  %i*2                 !
!                                                           !
!1-i   -2 - 3i  +3.e-321  -1.3   +.4   - 3.3D+32 + 234.1 i  !

--> isnum(Txt)
 ans  =
  T T T T T T
  T F F F T T
  F T T T T F
  T T T T T T 

--> strtod(Txt)
 ans  =
   Nan   Nan   Nan   Nan   Nan   Nan
   Nan   Nan   2.     Nan   Nan   Nan
   Nan   Nan   2.    -2.     2.     Nan
   1.    -2.     0.    -1.3    0.4    Nan

--- Comment #28 from Samuel GOUGEON <sgougeon at free.fr> ---
For the record: Pending commit: https://codereview.scilab.org/#/c/13069/

--- Comment #29 from Samuel GOUGEON <sgougeon at free.fr> ---
The Octave policy for its str2double() is presented here:
https://octave.sourceforge.io/octave/function/str2double.html

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180305/924c305a/attachment.htm>


More information about the Bugzilla mailing list