German English

Mathematical Operators

Basic mathematical operators

Classification

Library Core
Art Term
Exceptions Core..ArithmeticException
Categories Core Terms, Terms, Operations

Description

Mathematical operators are in accordance with the C#-Nota­tion used for mathematical operations. The following operators can be used:

  • +
    Plus, das Ergeb­nis ist die nume­ri­sche Sum­me von zwei oder meh­re­ren Ope­ran­den.
  • -
    Negative, the result is the numerical subtraction of left and right operands.
  • -
    Negation, the result is the negated value of the instruction (for example: -1 or-variable1).
  • *
    Mal, das Ergeb­nis ist die nume­ri­sche Mul­ti­pli­ka­tion von zwei oder meh­re­ren Ope­ran­den.
  • /
    By the result is the numerical division of the left and right operands.
  • %
    Modulo, the result is the remainder of integer division of left and right operand (only for type Integer).

Expression

NumericValue = NumericTerm1 Operator NumericTerm2
NumericValue = -NumericTerm1

Properties

Below are all the properties / arguments of the term in order listed.
NameTypeArtMInRDescription
NumericValueReturnTheReturn value of the mathematical operation. If one of the operands of type float of the return value is float. Otherwise, the return value of type Integer.
NumericTerm1TermInLeft numeric operand of type integer or float
NumericTerm2TermInRight numerical operand of type integer or float
Legend: No Type = Indeterminate type, see description; M = Property is required (mandatory); In = Verkettbares Element; R = Datenrichtung I = In, O = Out, I/O = In/Out

Examples

  • MyValue1 + MyValue2
  • MyValue1 % MyValue2
  • MyValue1 / MyValue2

See also

  • Created
    15. February 2011
  • Version
    16
  • Amended
    08. Dezember 2011
  • Hits
    807