Packages

c

spinal.core

PhysicalNumber

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)

Abstract Value Members

  1. abstract def decompose: (BigDecimal, String)
  2. abstract def newInstance(value: BigDecimal): T

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def %(that: BigDecimal): T
  4. def %(that: PhysicalNumber[_]): BigDecimal
  5. def *(that: BigDecimal): T
  6. def *(that: PhysicalNumber[_]): BigDecimal
  7. def +(that: BigDecimal): T
  8. def +(that: T): T
  9. def -(that: BigDecimal): T
  10. def -(that: T): T
  11. def /(that: BigDecimal): T
  12. def /(that: PhysicalNumber[_]): BigDecimal
  13. def <(that: T): Boolean
  14. def <=(that: T): Boolean
  15. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def >(that: T): Boolean
  17. def >=(that: T): Boolean
  18. def abs: T
  19. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  20. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  21. def decomposeString: String
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. def formatTo(formatter: Formatter, flags: Int, width: Int, precision: Int): Unit
    Definition Classes
    PhysicalNumber → Formattable
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def max(that: T): T
  29. def min(that: T): T
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toBigDecimal: BigDecimal
  35. def toDouble: Double
  36. def toInt: Int
  37. def toLong: Long
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. val value: BigDecimal
    Attributes
    protected
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  42. 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

Inherited from Formattable

Inherited from AnyRef

Inherited from Any

Ungrouped