← log operator page · numeric/log/sc_sc/integer_operands
pandas ✅ · DuckDB ✅
log of two integers: log(SC_1, SC_2) with SC_1 = 1024 and SC_2 = 2.
Logarithm: "log ( 1024, 2 ) gives 10", and "The result has type number."
SC_r = 10.0, a Number although both operands are Integers.
SC_r := log(SC_1, SC_2);
| SC_1 | SC_2 |
|---|---|
| 1024 | 2 |
{
"scalars": [
{"name": "SC_1", "type": "Integer"},
{"name": "SC_2", "type": "Integer"}
]
}
{
"scalars": [
{
"name": "SC_r",
"type": "Number",
"value": "10.000000"
}
]
}