0x3fffffff.div(2.0) and 0x40000001.div(2.0)

e$B0J2<$N$h$&$K!"e(B0x3fffffff.div(2.0) e$B$He(B 0x40000001.div(2.0)
e$B$Ge(B
e$B>[email protected]<$,$D$/$+$I$&$+$,0c$$$^$9!#e(B

% ./ruby -e ‘p 0x3fffffff.div(2.0)’
536870911
% ./ruby -e ‘p 0x40000001.div(2.0)’
536870912.5
% ./ruby -v
ruby 1.9.0 (2008-05-01 revision 16248) [i686-linux]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs