public class Float extends AbstractFloat implements ValueType:
Represents a 32-bit floating-point number.
| Modifier and Type | Member | Description |
|---|---|---|
| public native | FloatFloat() |
Builds the neutral Float value (`0. |
| public native | Float | Builds a Float from a Boolean value (`false` = 0. |
| public native | Float | Builds a Float from a character code point. |
| public native | Float | Builds a Float from a Double value. |
| public native | Float | Builds a Float from a Float value. |
| public native | Float | Builds a Float from an Int value. |
| public native | Float | Builds a Float from a signed 64-bit integer. |
| public native | FloatFloat(value: String) throws BadValueException |
Builds a Float from a textual representation. |
| public native | Float | Builds a Float from an unsigned 32-bit integer. |
| public native | Float | Builds a Float from an unsigned 64-bit integer. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | toStringtoString() as String: |
Converts this value to its textual representation. |
| public static | tryParse | Parses a Float value from text. |
| Modifier and Type | Member | Description |
|---|---|---|
| public native static | operator!=( readonly a as Float, readonly b as Float ) as Boolean | Tests whether two Float values are different. |
| public native static | operator%( readonly a as Float, readonly b as Float ) as Float | Computes the remainder of one Float value divided by another. |
| public native static | operator%=( readonly a as Float, readonly b as Float ) as Void | Replaces `a` with the remainder of `a` divided by `b`. |
| public native static | operator*( readonly a as Float, readonly b as Float ) as Float | Multiplies two Float values. |
| public native static | operator**( readonly value as Float, readonly power as Float ) as Float | Raises a Float value to a power. |
| public native static | operator**=( readonly value as Float, readonly power as Float ) as Void | Replaces `value` with `value ** power`. |
| public native static | operator*=( readonly a as Float, readonly b as Float ) as Void | Multiplies `a` by `b` in place. |
| public native static | operator+( readonly a as Float, readonly b as Float ) as Float | Adds two Float values. |
| public native static | operator+=( readonly a as Float, readonly b as Float ) as Void | Adds `b` to `a` in place. |
| public native static | operator-( readonly a as Float, readonly b as Float ) as Float | Subtracts one Float value from another. |
| public native static | operator-=( readonly a as Float, readonly b as Float ) as Void | Subtracts `b` from `a` in place. |
| public native static | operator/( readonly a as Float, readonly b as Float ) as Float | Divides one Float value by another. |
| public native static | operator/=( readonly a as Float, readonly b as Float ) as Void | Divides `a` by `b` in place. |
| public native static | operator<( readonly a as Float, readonly b as Float ) as Boolean | Tests whether `a` is strictly lower than `b`. |
| public native static | operator<=( readonly a as Float, readonly b as Float ) as Boolean | Tests whether `a` is lower than or equal to `b`. |
| public native static | operator==( readonly a as Float, readonly b as Float ) as Boolean | Tests whether two Float values are equal. |
| public native static | operator>( readonly a as Float, readonly b as Float ) as Boolean | Tests whether `a` is strictly greater than `b`. |
| public native static | operator>=( readonly a as Float, readonly b as Float ) as Boolean | Tests whether `a` is greater than or equal to `b`. |