Skip to content

techaddict/bignum

Repository files navigation

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

About

Big Numbers Library for Scala

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published