pub fn numeric_method(
receiver: &Value,
method: &str,
args: &[Value],
line: u32,
) -> Result<(Value, Option<Value>), BopError>Expand description
Method dispatch for Int and Number receivers. Covers the
math operations that used to be global builtins (abs,
sqrt, sin, …) plus numeric coercions (to_int,
to_float). Returns Err on argument errors or unknown
method names — no fall-through.