← floor operator page · numeric/floor/sc/negative_fraction
pandas ✅ · DuckDB ✅
floor of a negative fraction: floor(SC_1) with SC_1 = -3.1415.
Floor: "floor( -3.1415 ) gives -4".
SC_r = -4, an Integer: the greatest integer not above the operand, where a truncation would give -3.
SC_r := floor(SC_1);
| SC_1 |
|---|
| -3.1415 |
{
"scalars": [
{"name": "SC_1", "type": "Number"}
]
}
{
"scalars": [
{
"name": "SC_r",
"type": "Integer",
"value": "-4"
}
]
}