← ceil operator page · numeric/ceil/sc/positive_fraction

Positive fraction 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

ceil of a positive fraction: ceil(SC_1) with SC_1 = 3.14159.

Manual:

Ceiling: "ceil( 3.14159 ) gives 4".

Expected:

SC_r = 4, an Integer.

script.vtl ⇩

SC_r := ceil(SC_1);

input/scalars.csv ⇩

SC_1
3.14159

input/scalars.json ⇩

{
  "scalars": [
    {"name": "SC_1", "type": "Number"}
  ]
}

expected/scalars.json ⇩

{
  "scalars": [
    {
      "name": "SC_r",
      "type": "Integer",
      "value": "4"
    }
  ]
}