← All docs
floatval() — internals
Compiler internals for floatval(): lowering path, type checks, and runtime helpers.
floatval() — internals
Where it lives
- Signature:
src/builtins/types/floatval.rs - Lowering:
src/codegen/lower_inst/builtins.rs:1160 (lower_floatval) - Function symbol:
lower_floatval()
Lowering notes
- Lowers
floatval()for concrete scalar operands.
Runtime helpers
The following runtime helpers are referenced:
__rt_mixed_cast_float__rt_str_to_number
Signature summary
function floatval(mixed $value): float
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/types/floatval.rs(eval_builtin!) - Dispatch hooks:
direct,values