Thread Rechenfehler mit Perl ausgleichen (71 answers)
Opened by bianca at 2013-04-27 13:42

Raubtier
 2013-04-28 16:26
#167339 #167339
User since
2012-05-04
1054 Artikel
BenutzerIn

user image
2013-04-28T08:04:17 tonewheel
'Learning Perl', 5th Edition (neben einigen anderen)
'....... But internally, Perl computes with double-precision floating-point values. This means, there are no integer values internal to Perl


Das kann auch schon deswegen nicht richtig sein, weil es ja mit Perldoc:integer ein pragma gibt, mit dem man mit Integern rechnet.

Quote
Internally, native integer arithmetic (as provided by your C compiler) is used. This means that Perl's own semantics for arithmetic operations may not be preserved. One common source of trouble is the modulus of negative numbers, which Perl does one way, but your hardware may do another.

View full thread Rechenfehler mit Perl ausgleichen