← modulo operator page · numeric/modulo/sc_sc/zero_divisor
pandas ✅ · DuckDB ✅
the result when the divisor is 0: mod(SC_1, SC_2) with SC_1 = 9 and SC_2 = 0.
Modulo: "It returns op1 if divisor op2 is 0", and "mod ( 9, 0 ) gives 9".
SC_r = 9, an Integer.
SC_r := mod(SC_1, SC_2);
| SC_1 | SC_2 |
|---|---|
| 9 | 0 |
{
"scalars": [
{"name": "SC_1", "type": "Integer"},
{"name": "SC_2", "type": "Integer"}
]
}
{
"scalars": [
{
"name": "SC_r",
"type": "Integer",
"value": "9"
}
]
}