Numeric operators

🟢 18 of 18 operators all ok · vtlengine 1.10.0rc2 (90ee9376) · pandas 2.3.3 · DuckDB 1.5.5
🟢 all ok🟡 partially implemented🛡️ refused with an error🔴 not implemented or crash🔵 engines differ ✅ match · ❌ wrong result · 🛡 guarded error (code) · 💥 crash · 📌 team decision
        ---
config:
  flowchart:
    useMaxWidth: false

---
flowchart LR
    classDef ok fill:#d4edda,stroke:#28a745,color:#000
    classDef partial fill:#fff3cd,stroke:#ffc107,color:#000
    classDef refused fill:#d4edda,stroke:#28a745,stroke-width:3px,stroke-dasharray: 2 2,color:#000
    classDef missing fill:#f8d7da,stroke:#dc3545,color:#000
    classDef diverge fill:#cce5ff,stroke:#007bff,color:#000
    classDef block fill:#2b3a4a,stroke:#2b3a4a,color:#fff,font-weight:bold
    classDef ext fill:#fff,stroke:#666,color:#000,stroke-dasharray: 5 5
    B["Numeric operators"]:::block
    numeric__unary_plus["Unary plus · +<br/>🟢3"]:::ok
    numeric__unary_minus["Unary minus · -<br/>🟢3"]:::ok
    numeric__addition["Addition · +<br/>🟢7"]:::ok
    numeric__subtraction["Subtraction · -<br/>🟢7"]:::ok
    numeric__multiplication["Multiplication · *<br/>🟢7"]:::ok
    numeric__division["Division · /<br/>🟢7"]:::ok
    numeric__modulo["Modulo · mod<br/>🟢7"]:::ok
    numeric__round["Rounding · round<br/>🟢11"]:::ok
    numeric__trunc["Truncation · trunc<br/>🟢11"]:::ok
    numeric__ceil["Ceiling · ceil<br/>🟢3"]:::ok
    numeric__floor["Floor · floor<br/>🟢3"]:::ok
    numeric__abs["Absolute value · abs<br/>🟢3"]:::ok
    numeric__exp["Exponential · exp<br/>🟢3"]:::ok
    numeric__ln["Natural logarithm · ln<br/>🟢3"]:::ok
    numeric__sqrt["Square root · sqrt<br/>🟢3"]:::ok
    numeric__power["Power · power<br/>🟢5"]:::ok
    numeric__log["Logarithm · log<br/>🟢5"]:::ok
    numeric__random["Random · random<br/>🟢3"]:::ok
    numeric__unary_plus --- B
    numeric__unary_minus --- B
    numeric__addition --- B
    numeric__subtraction --- B
    numeric__multiplication --- B
    numeric__division --- B
    numeric__modulo --- B
    numeric__round --- B
    numeric__trunc --- B
    B --- numeric__ceil
    B --- numeric__floor
    B --- numeric__abs
    B --- numeric__exp
    B --- numeric__ln
    B --- numeric__sqrt
    B --- numeric__power
    B --- numeric__log
    B --- numeric__random
    click numeric__unary_plus href "unary_plus.html"
    click numeric__unary_minus href "unary_minus.html"
    click numeric__addition href "addition.html"
    click numeric__subtraction href "subtraction.html"
    click numeric__multiplication href "multiplication.html"
    click numeric__division href "division.html"
    click numeric__modulo href "modulo.html"
    click numeric__round href "round.html"
    click numeric__trunc href "trunc.html"
    click numeric__ceil href "ceil.html"
    click numeric__floor href "floor.html"
    click numeric__abs href "abs.html"
    click numeric__exp href "exp.html"
    click numeric__ln href "ln.html"
    click numeric__sqrt href "sqrt.html"
    click numeric__power href "power.html"
    click numeric__log href "log.html"
    click numeric__random href "random.html"
    

Operators

Operator

Status

Forms

Unary plus +

🟢

3

Unary minus -

🟢

3

Addition +

🟢

7

Subtraction -

🟢

7

Multiplication *

🟢

7

Division /

🟢

7

Modulo mod

🟢

7

Rounding round

🟢

11

Truncation trunc

🟢

11

Ceiling ceil

🟢

3

Floor floor

🟢

3

Absolute value abs

🟢

3

Exponential exp

🟢

3

Natural logarithm ln

🟢

3

Square root sqrt

🟢

3

Power power

🟢

5

Logarithm log

🟢

5

Random random

🟢

3

Types

Operator

number

integer

Unary plus

in · out

Unary minus

in · out

Addition

in · out

Subtraction

in · out

Multiplication

in · out

Division

in · out

Modulo

in · out

Rounding

in · out

in · out

Truncation

in · out

in · out

Ceiling

in

out

Floor

in

out

Absolute value

in · out

Exponential

in · out

Natural logarithm

in · out

Square root

in · out

Power

in · out

Logarithm

in · out

in

Random

in · out

in

Forms that are not green

Every form is 🟢 or 🛡️.