3.2.1.3 System.float
Implements: see System_object
Represents a floating-point value.
Supported operators:
+
- Add two floating-point values together.
-
- Subtract two floating-point values.
*
- Multiply two floating-point values.
/
- Divide two floating-point values.
<
- Return true if the left floating-point number is less than the right number.
<=
- Return true if the left floating-point number is less than or equal to the right number.
==
- Tests two floating-point values for equality.
>=
- Return true if the left floating-point number is greater than or equal to the right number.
>
- Return true if the left floating-point number is greater than the right number.
!=
- Tests two floating-point values for inequality.
unary +
- Return positive version of given floating-point number.
unary -
- Invert sign of given floating-point number.
Supported methods:
str()
- Returns a string representation of the object (overridden; see System_object).
int()
- Returns an integer representation of the object (overridden; see System_object).
float()
- Returns a floating-point representation of the object (overridden; see System_object).
bool()
- Returns a Boolean representation of the object (overridden; see System_object).