Percent is an opaque Double value
Percent can be created with method constructors on primitives
3.Percent.tp // Prints: 3.0%
3.14.Percent.tp // Prints: 3.14%
- Source
- Percent.scala
Def
Remainder
Remainder
Returns the remainder of the division of this by given value
- Inherited from
- _methods
- Source
- Numerical.scala
Multiply
Multiply
Returns the product of this and given value
- Inherited from
- _methods
- Source
- Numerical.scala
Plus
Plus
Returns the sum of this and given value
- Inherited from
- _methods
- Source
- Numerical.scala
Minus
Minus
Returns difference of this and given value
- Inherited from
- _methods
- Source
- Numerical.scala
Divide
Divide
Returns the quotient of this and given value
- Inherited from
- _methods
- Source
- Numerical.scala
Less
Less
Returns true
if current value is less than given, false
- otherwise
- Inherited from
- _methods
- Source
- Numerical.scala
Less
Less
Returns true
if current value is less than given, false
- otherwise
- Inherited from
- _methods
- Source
- Ordered.scala
Less or equal
Less or equal
Returns true
if current value is less or equal to given, false
- otherwise
- Inherited from
- _methods
- Source
- Numerical.scala
Less or equal
Less or equal
Returns true
if current value is less or equal to given, false
- otherwise
- Inherited from
- _methods
- Source
- Ordered.scala
Range
Range
Returns Range from current to given value
Note. Range uses base primitive natural ordering
- Inherited from
- z_MethodsBase
- Source
- Ordered.scala
Exclusive end range
Exclusive end range
Returns Range from current to given value exclusive
Note. Range uses base primitive natural ordering
- Inherited from
- z_MethodsBase
- Source
- Ordered.scala
Greater
Greater
Returns true
if current value is greater than given, false
- otherwise
- Inherited from
- _methods
- Source
- Numerical.scala
Greater
Greater
Returns true
if current value is greater than given, false
- otherwise
- Inherited from
- _methods
- Source
- Ordered.scala
Greater or equal
Greater or equal
Returns true
if current value is greater or equal to given, false
- otherwise
- Inherited from
- _methods
- Source
- Numerical.scala
Greater or equal
Greater or equal
Returns true
if current value is greater or equal to given, false
- otherwise
- Inherited from
- _methods
- Source
- Ordered.scala
To option
To option
Returns Double specialized option
- Inherited from
- _methods
- Source
- Base.scala
Take percent
Take percent
Applies this percent to given value.
- Source
- Percent.scala
Max value
Max value
Returns maximum of current or given value
- Inherited from
- z_MethodsBase
- Source
- Ordered.scala
Min value
Min value
Returns minimun of current or given value
- Inherited from
- z_MethodsBase
- Source
- Ordered.scala
Real value
Real value
Returns Double value standing behind the opaque type.
This is a zero cost call.
- Inherited from
- _methods
- Source
- Base.scala
Round to size
Round to size
Rounds current value to specified size
- Inherited from
- _methods
- Source
- Numerical.scala
Round to decimal
Round to decimal
Rounds current value to specified decimal position of fractional value
- Inherited from
- _methods
- Source
- Numerical.scala
Sign
Sign
Returns -1 if this is negative, 0 - if this value equals to 0, and 1 otherwise
- Inherited from
- _methods
- Source
- Numerical.scala