The largest value representable as a positive Float,
which is PosFloat(3.4028235E38).
The largest value representable as a positive Float,
which is PosFloat(3.4028235E38).
The smallest value representable as a positive
Float, which is PosFloat(1.4E-45).
The smallest value representable as a positive
Float, which is PosFloat(1.4E-45).
A factory method, implemented via a macro, that produces a
PosFloat if passed a valid Float
literal, otherwise a compile time error.
A factory method, implemented via a macro, that produces a
PosFloat if passed a valid Float
literal, otherwise a compile time error.
The macro that implements this method will inspect the
specified Float expression at compile time. If
the expression is a positive Float literal,
i.e., with a value greater than 0.0, it will return
a PosFloat representing that value. Otherwise,
the passed Float expression is either a literal
that is 0.0 or negative, or is not a literal, so this method
will give a compiler error.
This factory method differs from the from
factory method in that this method is implemented via a
macro that inspects Float literals at compile
time, whereas from inspects Float
values at run time.
the Float literal expression to
inspect at compile time, and if positive, to return
wrapped in a PosFloat at run time.
the specified, valid Float literal
value wrapped in a PosFloat. (If the
specified expression is not a valid Float
literal, the invocation of this method will not
compile.)
A factory method that produces an Option[PosFloat] given a
Float value.
A factory method that produces an Option[PosFloat] given a
Float value.
This method will inspect the passed Float value and if
it is a positive Float, i.e., a value greater
than 0.0, it will return a PosFloat representing that value,
wrapped in a Some. Otherwise, the passed Float
value is 0.0 or negative, so this method will return None.
This factory method differs from the apply
factory method in that apply is implemented
via a macro that inspects Float literals at
compile time, whereas from inspects
Float values at run time.
the Float to inspect, and if positive, return
wrapped in a Some[PosFloat].
the specified Float value wrapped in a
Some[PosFloat], if it is positive, else
None.
Implicit Ordering instance.
Implicit widening conversion from PosFloat to
Double.
Implicit widening conversion from PosFloat to
Double.
the PosFloat to widen
the Float value underlying the
specified PosFloat, widened to
Double.
Implicit widening conversion from PosFloat to
Float.
Implicit widening conversion from PosFloat to
Float.
the PosFloat to widen
the Float value underlying the
specified PosFloat
Implicit widening conversion from PosFloat to
PosDouble.
Implicit widening conversion from PosFloat to
PosDouble.
the PosFloat to widen
the Float value underlying the
specified PosFloat, widened to
Double and wrapped in a
PosDouble.
Implicit widening conversion from PosFloat to
PosZDouble.
Implicit widening conversion from PosFloat to
PosZDouble.
the PosFloat to widen
the Float value underlying the
specified PosFloat, widened to
Double and wrapped in a
PosZDouble.
Implicit widening conversion from PosFloat to
PosZFloat.
Implicit widening conversion from PosFloat to
PosZFloat.
the PosFloat to widen
the Float value underlying the
specified PosFloat wrapped in a
PosZFloat.
The companion object for
PosFloatthat offers factory methods that producePosFloats, implicit widening conversions fromPosFloatto other numeric types, and maximum and minimum constant values forPosFloat.