You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perl can internally represent numbers in 3 different ways: as native integers, as native floating point numbers, and as decimal strings. Decimal strings may have an exponential notation part, as in "12.34e-56" . Native here means "a format supported by the C compiler which was used to build perl".
I think integer and floating point semantics are reasonably well defined though?
Issues:
Oil uses 32 bit int (even on 64 bit) while other shells use 64 bits (long int)
printf had an issue, with negative numbers I think
In theory we want Oil on two different machines to behave the same way, even if they were compiled with a different compiler. It makes things more reproducible
The text was updated successfully, but these errors were encountered:
Perl even documents this:
https://perldoc.perl.org/perlnumber.html#Storing-numbers
I think integer and floating point semantics are reasonably well defined though?
Issues:
printf
had an issue, with negative numbers I thinkIn theory we want Oil on two different machines to behave the same way, even if they were compiled with a different compiler. It makes things more reproducible
The text was updated successfully, but these errors were encountered: