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