← division operator page · numeric/division/sc_sc/number_result

Number result 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

the quotient of two integer scalars: SC_1 / SC_2 with SC_1 = 3 and SC_2 = 5.

Manual:

Division: "3 / 5 gives 0.6".

Expected:

SC_r = 0.6, a Number: "The result has type number."

script.vtl ⇩

SC_r := SC_1 / SC_2;

input/scalars.csv ⇩

SC_1SC_2
35

input/scalars.json ⇩

{
  "scalars": [
    {"name": "SC_1", "type": "Integer"},
    {"name": "SC_2", "type": "Integer"}
  ]
}

expected/scalars.json ⇩

{
  "scalars": [
    {
      "name": "SC_r",
      "type": "Number",
      "value": "0.600000"
    }
  ]
}