4.2.3: mpf_set_str() no longer recognizes exponents with '+' prefix

Jan Andres jandres at gmx.net
Sat Aug 16 12:55:56 CEST 2008


On Sat, Aug 16, 2008 at 12:06:14PM +0200, Torbjorn Granlund wrote:
>   Strings like "1e+3" are no more recognized by mpf_set_str() in 4.2.3,
>   only "1e3" is.
> 
> Indeed it isn't, but it never was.

Actually, this has worked for me in 4.2.1. In that version, a call to
strtol() was used to parse the exponent and it seems that at least on
Linux, strtol() doesn't mind about a leading '+'.

-- 
Jan Andres <jandres at gmx.net>


More information about the gmp-bugs mailing list