Arithmetik - Amazon QuickSight

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

Arithmetik

Die folgende Tabelle zeigt arithmetische Ausdrücke, die mit der Ausdruckssprache verwendet werden können. JSON

Operation Expression Eingabe Output
Addition ["+", operand1, operand2] { sum: ["+", 2, 4] } { sum: 6 }
Subtraktion ["-", operand1, operand2] { difference: ["-", 10, 3] } { difference: 7 }
Multiplikation ["*", operand1, operand2] { product: ["*", 5, 6] } { product: 30 }
Division ["/", operand1, operand2] { quotient: ["/", 20, 4] } { quotient: 5 }
Modulo ["%", operand1, operand2] { remainder: ["%", 15, 4] } { remainder: 3 }
Potenzierung ["**", base, exponent] { power: ["**", 2, 3] } { power: 8 }
Absoluter Wert ["abs", operand] { absolute: ["abs", -5] } { absolute: 5 }
Square Root (Quadratwurzel) ["sqrt", operand] { sqroot: ["sqrt", 16] } { sqroot: 4 }
Logarithmus (Basis 10) ["log10", operand] { log: ["log10", 100] } { log: 2 }
Natürlicher Logarithmus ["ln", operand] { ln: ["ln", Math.E] } { ln: 1 }
Rund ["round", operand] { rounded: ["round", 3.7] } { rounded: 4 }
Fußboden ["floor", operand] { floor: ["floor", 3.7] } { floor: 3 }
Decke ["ceil", operand] { ceiling: ["ceil", 3.2] } { ceiling: 4 }
Sinus ["sin", operand] { sine: ["sin", 0] } { sine: 0 }
Kosinus ["cos", operand] { cosine: ["cos", 0] } { cosine: 1 }
Tangente ["tan", operand] { tangent: ["tan", Math.PI] } { tangent: 0 }