github.com/mithrandie/csvq@v1.18.1/docs/_posts/2006-01-02-arithmetic-operators.md (about)

     1  ---
     2  layout: default
     3  title: Arithmetic Operators - Reference Manual - csvq
     4  category: reference
     5  ---
     6  
     7  # Arithmetic Operators
     8  
     9  ## Binary Operators
    10  {: #binary}
    11  
    12  | operator | description |
    13  | :- | :- |
    14  | +  | Addition |
    15  | \- | Subtraction |
    16  | *  | Multiplication |
    17  | /  | Division |
    18  | %  | Modulo |
    19  
    20  ### Syntax
    21  
    22  ```sql
    23  value operator value
    24  ```
    25  
    26  _value_
    27  : [value]({{ '/reference/value.html' | relative_url }})
    28  
    29  A binary arithmetic operator calculate integer or float values, and return the result.
    30  
    31  If either of operands is null or the conversions to integer or float failed, return null.
    32  
    33  ## Unary Operators
    34  {: #unary}
    35  
    36  | operator | description |
    37  | :- | :- |
    38  | +  | Plus |
    39  | \- | Minus |
    40  
    41  ### Syntax
    42  
    43  ```sql
    44  operator value
    45  ```
    46  
    47  _value_
    48  : [value]({{ '/reference/value.html' | relative_url }})
    49