implicit final class ConvenientDouble extends AnyVal
This class extends the interface of Double with convenience methods.
- Alphabetic
- By Inheritance
- ConvenientDouble
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ConvenientDouble(value: Double)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atLeast(minimum: Double): Double
num atLeast limitis equivalent tonum.max(limit). - def atMost(maximum: Double): Double
num atMost limitis equivalent tonum.min(limit). - def clamp(low: Int, high: Int): Double
num.clamp(low, high)is equivalent tonum.max(low).min(high). - def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def isBetween(low: Double, high: Double): Boolean
Determines if the at least as large as
lowand less thanhigh.Determines if the at least as large as
lowand less thanhigh. Note that the lower bound is inclusive and the upper bound exclusive. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString: String
- Definition Classes
- Any