← All docs
deg2rad() — internals
Compiler internals for deg2rad(): lowering path, type checks, and runtime helpers.
deg2rad() — internals
Where it lives
- Signature:
src/builtins/math/deg2rad.rs - Lowering:
src/codegen/lower_inst/builtins/math/libm.rs:75 (lower_deg2rad) - Function symbol:
lower_deg2rad()
Lowering notes
- Lowers
deg2rad()by multiplying withPI / 180.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function deg2rad(float $num): float
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/math/deg2rad.rs(eval_builtin!) - Dispatch hooks:
direct,values