On 7/27/24 19:23, Waldek Hebisch wrote:
On Sat, Jul 27, 2024 at 05:25:52PM +0200, Grégory Vanuxem wrote:
No. toString(3.7,20)
I see. Yes we need 'floor' but also a special case for negative
numbers.
Isn't "truncate" what you are looking for?
To say the truth we probably do not want separate implementation
of 'toString', issues are exactly the same as in printing code
and solution is likely to be the same.
Well, unfortunately, I haven't collected these cases, but there must be
bugs also in the printing of floats. I faintly remember that I set the
output to a fixed number of digits and it would often come out with
these number of digits, but for some numbers also less digits were
printed. I'll try to collect them next time.
Ralf
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/a94ec039-0c54-4126-9ce7-7a4fe408429d%40gmail.com.