baml.panics.DivisionByZero
Raised when an `int` or `bigint` is divided by zero, by either `/` or `%`.
Reference version
Signature
class baml.panics.DivisionByZeroRaised when an int or bigint is divided by zero, by either / or %.
float division does not raise this: IEEE-754 has values for the result,
so 1.0 / 0.0 is inf and 0.0 / 0.0 is NaN.
Examples
let result = 1 / 0; // panics
Source:<builtin>/baml/ns_panics/panics.bamlbytes 292–415
Fields
dividend
int | bigintThe left operand, in whichever integer type the division used.
Implementations
baml.Concrete for T
Source:<builtin>/baml/core.bamlbytes 747–779