]> www.ginac.de Git - cln.git/commit
Fix floating-point input from decimal string.
authorRichard Kreckel <kreckel@ginac.de>
Sat, 11 Oct 2014 22:03:21 +0000 (22:03 +0000)
committerRichard Kreckel <kreckel@ginac.de>
Sat, 11 Oct 2014 22:03:21 +0000 (22:03 +0000)
commit44e77b58d049e31c8526dfce5ec8365d1ffa3d38
tree40ab486f031cbfc210a4282765651feb1e0e3515
parentf5926253a1b9c6d92a35787f4df0ee7817e7975d
Fix floating-point input from decimal string.

A bug was introduced in 3480230e: The divide-and-conquer method multiplies
with a power of the base, but this power is one too much if there is a
decimal point. This may happen because digits_to_I(...) is also called
from read_float(...). As a result, the number containd spurious zeros
(in the base used for reading it).

Thanks to Thomas Luthe <tluthe@physik.uni-bielefeld.de>.
src/integer/conv/cl_I_from_digits.cc