Packages

object FixedPoint extends NumObject

Factory and convenience methods for the FixedPoint class IMPORTANT: The API provided here is experimental and may change in the future.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FixedPoint
  2. NumObject
  3. AnyRef
  4. 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
    Definition Classes
    NumObject
  5. val MaxBitsBigIntToDouble: Int
    Definition Classes
    NumObject
  6. def apply(value: BigInt, width: Width, binaryPoint: BinaryPoint): FixedPoint

    Create an FixedPoint port with specified width and binary position.

  7. def apply(width: Width, binaryPoint: BinaryPoint): FixedPoint

    Create an FixedPoint type or port with fixed width.

  8. def apply(): FixedPoint

    Create an FixedPoint type with inferred width.

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def fromBigDecimal(value: BigDecimal, width: Width, binaryPoint: BinaryPoint): FixedPoint

    Create an FixedPoint literal with inferred width from BigDecimal.

    Create an FixedPoint literal with inferred width from BigDecimal. Use PrivateObject to force users to specify width and binaryPoint by name

  14. def fromBigInt(value: BigInt, width: Int, binaryPoint: Int): FixedPoint

    Create an FixedPoint literal with inferred width from BigInt.

    Create an FixedPoint literal with inferred width from BigInt. Use PrivateObject to force users to specify width and binaryPoint by name

  15. def fromBigInt(value: BigInt, binaryPoint: BinaryPoint = 0.BP): FixedPoint

    Create an FixedPoint literal with inferred width from BigInt.

    Create an FixedPoint literal with inferred width from BigInt. Use PrivateObject to force users to specify width and binaryPoint by name

  16. def fromBigInt(value: BigInt, width: Width, binaryPoint: BinaryPoint): FixedPoint

    Create an FixedPoint literal with inferred width from BigInt.

    Create an FixedPoint literal with inferred width from BigInt. Use PrivateObject to force users to specify width and binaryPoint by name

  17. def fromDouble(value: Double, width: Width, binaryPoint: BinaryPoint): FixedPoint

    Create an FixedPoint literal with inferred width from Double.

    Create an FixedPoint literal with inferred width from Double. Use PrivateObject to force users to specify width and binaryPoint by name

  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. 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

    Definition Classes
    NumObject
  26. 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

    Definition Classes
    NumObject
  27. 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

    Definition Classes
    NumObject
  28. 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

    Definition Classes
    NumObject
  29. 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

    Definition Classes
    NumObject
  30. 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

    Definition Classes
    NumObject
  31. 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

    Definition Classes
    NumObject
  32. 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

    Definition Classes
    NumObject
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. object Implicits

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 NumObject

Inherited from AnyRef

Inherited from Any

Ungrouped