- Source:
Floating Point Number-based type functionality.
Methods
ish.type.float.is(x) → {boolean}
- Source:
Determines if the passed value represents a floating point number (includes implicit casting per the Javascript rules, see: {@link: ish.type.int.mk}).
Parameters:
Name |
Type |
Description |
x |
variant
|
Value to interrogate. |
Returns:
Type |
Description |
boolean
|
Value representing if the passed value represents a floating point number. |
ish.type.float.mk(x, vDefaultValopt, iRadixopt) → {float}
- Source:
Casts the passed value into a floating point number (includes implicit casting per the Javascript rules, see: {@link: ish.type.int.mk}).
Parameters:
Name |
Type |
Attributes |
Default |
Description |
x |
variant
|
|
|
Value to interrogate. |
vDefaultVal |
variant
|
<optional>
|
0
|
Value representing the default return value if casting fails. |
iRadix |
integer
|
<optional>
|
10
|
Value between 2-36 that represents the radix (the base in mathematical numeral systems) passed into parseFloat . |
Returns:
Type |
Description |
float
|
Value representing the passed value as an floating point number type. |