fdiv()
function fdiv(float $num1, float $num2): float
Divides two numbers, according to IEEE 754.
Parameters:
$num1(float)$num2(float)
Returns: float
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/math/fdiv.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how fdiv is implemented in the compiler, see the internals page.