El día Thursday, April 16, 2015 a las 06:04:00PM +0200, Antek Kantek escribió:
> Another thing I noticed by accident is that if you compute simple expression
> like this
> 10*0,2+12*0,4+14*0,25+16*0,15
> in calc app you get as a result
> 12,700000000000001
> I understand that computing on floats is tricky, so I am not sure if you
> consider the above as a bug or feature. If you think that I should report
> this as a bug let me know.
> Antek
Hi,
Any normal 'bc' on FreeBSD and Linux gives exactly:
$ echo '10*0.2+12*0.4+14*0.25+16*0.15' | bc
12.70
matthias
--
Matthias Apitz, [email protected], http://www.unixarea.de/ +49-170-4527211
+49-176-38902045
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände
menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar
humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW
2, 138)
--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help : https://help.launchpad.net/ListHelp