clbustos / distribution

Statistical Distributions multi library wrapper. Uses Ruby by default and C (statistics2/GSL) or Java extensions where available.
Other
141 stars 52 forks source link

fix issue #4, gem changes behavior of integer division #5

Open freefrancisco opened 12 years ago

freefrancisco commented 12 years ago

gem only changes behavior of integer division in ruby versions < 1.9, because it includes mathn in order to use Prime. But mathn has the side effect of changing integer division. Instead of including mathn, we can just copy the Prime code from ruby 1.8.7 in the one line where mathn is called.