trait NumObject extends AnyRef
NumbObject has a lot of convenience methods for converting between BigInts and Double and BigDecimal For backwards compatibility this is used with FixedPoint and Interval objects but is better used with the Num Object
- Alphabetic
- By Inheritance
- NumObject
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val MaxBitsBigIntToBigDecimal: Int
- val MaxBitsBigIntToDouble: Int
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBigDecimal(value: BigInt, binaryPoint: BinaryPoint): BigDecimal
converts a bigInt with the given binaryPoint into the BigDecimal representation
converts a bigInt with the given binaryPoint into the BigDecimal representation
- value
a bigint
- binaryPoint
the implied binaryPoint of @i
-
def
toBigDecimal(value: BigInt, binaryPoint: Int): BigDecimal
converts a bigInt with the given binaryPoint into the BigDecimal representation
converts a bigInt with the given binaryPoint into the BigDecimal representation
- value
a bigint
- binaryPoint
the implied binaryPoint of @i
-
def
toBigInt(value: BigDecimal, binaryPoint: BinaryPoint): BigInt
How to create a bigint from a big decimal with a specific binaryPoint
How to create a bigint from a big decimal with a specific binaryPoint
- value
a BigDecimal value
- binaryPoint
a binaryPoint that you would like to use
-
def
toBigInt(x: BigDecimal, binaryPoint: Int): BigInt
How to create a bigint from a big decimal with a specific binaryPoint (int)
How to create a bigint from a big decimal with a specific binaryPoint (int)
- x
a BigDecimal value
- binaryPoint
a binaryPoint that you would like to use
-
def
toBigInt(x: Double, binaryPoint: BinaryPoint): BigInt
How to create a bigint from a big decimal with a specific binaryPoint
How to create a bigint from a big decimal with a specific binaryPoint
- x
a BigDecimal value
- binaryPoint
a binaryPoint that you would like to use
-
def
toBigInt(x: Double, binaryPoint: Int): BigInt
How to create a bigint from a double with a specific binaryPoint
How to create a bigint from a double with a specific binaryPoint
- x
a double value
- binaryPoint
a binaryPoint that you would like to use
-
def
toDouble(value: BigInt, binaryPoint: BinaryPoint): Double
converts a bigInt with the given binaryPoint into the double representation
converts a bigInt with the given binaryPoint into the double representation
- value
a bigint
- binaryPoint
the implied binaryPoint of @i
-
def
toDouble(i: BigInt, binaryPoint: Int): Double
converts a bigInt with the given binaryPoint into the double representation
converts a bigInt with the given binaryPoint into the double representation
- i
a bigint
- binaryPoint
the implied binaryPoint of @i
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )