Number.is_float
Number.is_float
Function
Determine whether the current number runtime type is Float.
Syntax
number.is_float()
Parameters
None.
Return value
| Type | Description |
|---|---|
| Bool | Float returns true, Int returns false. |
Code Example
result = (1.5).is_float() // Output: true print result
Notes
- This method determines the runtime type and does not determine whether the value has a decimal part.