NumObject
NumObject has a lot of convenience methods for converting between BigInts and Double and BigDecimal
Attributes
Members list
Value members
Concrete methods
converts a bigInt with the given binaryPoint into the BigDecimal representation
converts a bigInt with the given binaryPoint into the BigDecimal representation
Value parameters
- binaryPoint
-
the implied binaryPoint of @i
- value
-
a bigint
Attributes
- Source
- Num.scala
How to create a bigint from a double with a specific binaryPoint
How to create a bigint from a double with a specific binaryPoint
Value parameters
- binaryPoint
-
a binaryPoint that you would like to use
- x
-
a double value
Attributes
- Source
- Num.scala
Create a bigint from a big decimal with a specific binaryPoint (Int)
Create a bigint from a big decimal with a specific binaryPoint (Int)
Value parameters
- binaryPoint
-
the binaryPoint to use
- x
-
the BigDecimal value
Attributes
- Source
- Num.scala
Create a bigint from a big decimal with a specific binaryPoint (Int)
Create a bigint from a big decimal with a specific binaryPoint (Int)
Value parameters
- binaryPoint
-
the binaryPoint to use
- roundingMode
-
the RoundingMode to use
- x
-
the BigDecimal value
Attributes
- Source
- Num.scala