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
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- PhysicalNumber
- Formattable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new PhysicalNumber(value: BigDecimal)
Abstract Value Members
Concrete Value Members
- def %(that: BigDecimal): T
- def %(that: PhysicalNumber[_]): BigDecimal
- def *(that: BigDecimal): T
- def *(that: PhysicalNumber[_]): BigDecimal
- def +(that: BigDecimal): T
- def +(that: T): T
- def -(that: BigDecimal): T
- def -(that: T): T
- def /(that: BigDecimal): T
- def /(that: PhysicalNumber[_]): BigDecimal
- def <(that: T): Boolean
- def <=(that: T): Boolean
- def >(that: T): Boolean
- def >=(that: T): Boolean
- def abs: T
- def decomposeString: String
-
def
formatTo(formatter: Formatter, flags: Int, width: Int, precision: Int): Unit
- Definition Classes
- PhysicalNumber → Formattable
- def max(that: T): T
- def min(that: T): T
- def toBigDecimal: BigDecimal
- def toDouble: Double
- def toInt: Int
- def toLong: Long