Class

spinal.core

PhysicalNumber

Related Doc: package core

Permalink

abstract class PhysicalNumber[T <: PhysicalNumber[_]] extends Formattable

Base class for the Physical representation (Hertz, Time, ...)

When formatting (e.g. via f-interpolation) one can use: - precision to specify precsion (e.g. "%.3f" for three digits past comma) - width to pad with space to a specified length (e.g. "%5f" to get at least 5 characters) - left justified padding (e.g. "%-5f" to pad right to 5 characters) - alternate to print w/o unit (e.g. "%#f")

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

Instance Constructors

  1. new PhysicalNumber(value: BigDecimal)

    Permalink

Abstract Value Members

  1. abstract def decompose: (BigDecimal, String)

    Permalink
  2. abstract def newInstance(value: BigDecimal): T

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def %(that: BigDecimal): T

    Permalink
  4. def %(that: PhysicalNumber[_]): BigDecimal

    Permalink
  5. def *(that: BigDecimal): T

    Permalink
  6. def *(that: PhysicalNumber[_]): BigDecimal

    Permalink
  7. def +(that: BigDecimal): T

    Permalink
  8. def +(that: T): T

    Permalink
  9. def -(that: BigDecimal): T

    Permalink
  10. def -(that: T): T

    Permalink
  11. def /(that: BigDecimal): T

    Permalink
  12. def /(that: PhysicalNumber[_]): BigDecimal

    Permalink
  13. def <(that: T): Boolean

    Permalink
  14. def <=(that: T): Boolean

    Permalink
  15. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def >(that: T): Boolean

    Permalink
  17. def >=(that: T): Boolean

    Permalink
  18. def abs: T

    Permalink
  19. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  20. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @throws( ... )
  21. def decomposeString: String

    Permalink
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  24. def formatTo(formatter: Formatter, flags: Int, width: Int, precision: Int): Unit

    Permalink
    Definition Classes
    PhysicalNumber → Formattable
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def max(that: T): T

    Permalink
  29. def min(that: T): T

    Permalink
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toBigDecimal: BigDecimal

    Permalink
  35. def toDouble: Double

    Permalink
  36. def toInt: Int

    Permalink
  37. def toLong: Long

    Permalink
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. val value: BigDecimal

    Permalink
    Attributes
    protected
  40. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Formattable

Inherited from AnyRef

Inherited from Any

Ungrouped