← exp operator page · numeric/exp/sc/integer_operand

Integer operand 🟢 all ok

pandas ✅ · DuckDB ✅

Tests:

exp of an integer: exp(SC_1) with SC_1 = 5.

Manual:

Exponential: "exp ( 5 ) gives 148.41315...".

Expected:

SC_r = 148.413159, written to six decimals (e^5 = 148.4131591025766...), a Number although the operand is an Integer.

script.vtl ⇩

SC_r := exp(SC_1);

input/scalars.csv ⇩

SC_1
5

input/scalars.json ⇩

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

expected/scalars.json ⇩

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