Browse Source

Fix BigNumbers handlement

pull/2/head
Arthur POULET 5 years ago
parent
commit
a071b2336a
No known key found for this signature in database GPG Key ID: 655B758190EFBCD2
  1. 9
      src/stats/math/big_number.cr

9
src/stats/math/big_number.cr

@ -15,6 +15,10 @@ require "big_float"
BigInt.new(self) / other
end
def unsafe_mod(other : BigInt)
BigInt.new(self) % other
end
end
{% end %}
@ -28,4 +32,9 @@ struct BigInt
def /(other : BigFloat)
self / other
end
def unsafe_shr(other : Int::All)
BigInt.new(self) ** other
end
end

Loading…
Cancel
Save