Packages

t

chisel3

NumObject

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

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NumObject
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val MaxBitsBigIntToBigDecimal: Int
  5. val MaxBitsBigIntToDouble: Int
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. 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

  18. 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

  19. 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

  20. 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

  21. 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

  22. 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

  23. 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

  24. 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

  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped