Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.16 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.16 KB

bignum

Big Numbers Library Written purely in Scala Build Status

  • Constructors
BigInt2(str: String)
BigInt2(str: String, radix: Int)
BigInt2(value: Int)
BigInt2(value: Long)
  • Methods
    • Addition: a + b
    • Subtraction: a - b
    • Multiplication: a * b
    • Absolute: a.abs
    • Pow a.pow(Int)
    • Min: a min b
    • Max: a max b
    • compare: a compare b
    • intValue: a.intValue
    • longValue: a.longValue
    • signum: a.signum
    • Negate: - a
    • Left Shift: a << Int
    • Right Shift: a >> Int
    • Bit Length: a.bitLength
    • TestBit: a.testBit(Int)
    • Lowest Set Bit: a.lowestSetBit

Benchmark

Addition

Multiplication

Left Shift

Find the Benchmarking Code here

To run the code just enter sbt 'project benchmark' run