← addition operator page · numeric/addition/sc_sc/integer_plus_integer

Integer plus integer 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

the sum of two integer scalars: SC_1 + SC_2 with SC_1 = 3 and SC_2 = 5.

Manual:

Addition: "3 + 5 gives 8".

Expected:

SC_r = 8, an Integer.

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": "Integer",
      "value": "8"
    }
  ]
}