This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
uphp:functions:floatval [2017/03/28 20:11] jeff |
uphp:functions:floatval [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======floatval====== | ======floatval====== | ||
+ | |||
< | < | ||
- | Return the floating point value of a number or string | + | < |
====Description==== | ====Description==== | ||
- | <well size=" | + | |
- | <span style=" | + | <well size=" |
- | < | + | <span style=" |
- | <span style=" | + | <span style=" |
- | <span style=" | + | <span style=" |
+ | <span style=" | ||
</ | </ | ||
Line 15: | Line 17: | ||
====Parameter==== | ====Parameter==== | ||
- | < | ||
- | ====Return | + | < |
- | Floating point value, or: | + | |
- | * 0 on failure (for example, | + | ====Return |
- | * 0 on empty arrays | + | |
- | * 1 on non-empty | + | * < |
+ | * < | ||
+ | * < | ||
+ | * < | ||
====Example==== | ====Example==== | ||
- | **Convert the integer ' | + | |
+ | ===Convert the integer ' | ||
<code php> | <code php> | ||
Line 40: | Line 45: | ||
====See Also==== | ====See Also==== | ||
- | [[intval()]] - Return the integer value of a number or string | ||
- | [[strval()]] - Return the string equivalent | + | [[intval()]] - < |
- | [[is_numeric()]] - Return | + | [[strval()]] - < |
- | [[ieee754toint()]] - Take a floating point value and return an IEEE-754 encoded integer | + | [[is_numeric()]] - < |
- | [[inttoieee754()]] - Take an IEEE-754 encoded integer (32 bit) and return | + | [[inttoieee754()]] - < |
[[uphp: | [[uphp: | ||