← All docs

round() — internals

Compiler internals for round(): lowering path, type checks, and runtime helpers.

round() — internals

Where it lives

Lowering notes

  • Lowers round() for concrete integer-like and floating operands.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function round(float $num, int $precision = 0): float

What the type checker enforces

  • Arity: takes 1–2 arguments (1 optional).

Eval interpreter (magician)

Cross-references