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