Navigation Structure

Table of contents

  1. _add
  2. _sub
  3. _div
  4. _mod
  5. _mul
  6. _min
  7. _max
  8. _floor
  9. _ceil
  10. _round

Funcml implements basic mathematics.

_add

Returns a + b

Usage

key:
  _add:
    - 1
    - 2

will be rendered as:

key: 3

_sub

Returns a - b

Usage

key:
  _sub:
    - 2
    - 1

will be rendered as:

key: 1

_div

Returns a / b

Usage

key:
  _add:
    - 3
    - 2

will be rendered as:

key: 1.5

_mod

Returns a % b

Usage

key:
  _add:
    - 2
    - 3

will be rendered as:

key: 2

_mul

Returns a * b

Usage

key:
  _mul:
    - 2
    - 3

will be rendered as:

key: 6

_min

Returns minimal value in array

Usage

key:
  _min:
    - 2
    - 1
    - 3

will be rendered as:

key: 1

_max

Returns maximal value in array

Usage

key:
  _min:
    - 2
    - 3
    - 1

will be rendered as:

key: 3

_floor

Returns floor value.

Usage

key:
  _floor: 1.1

will be rendered as:

key: 1

_ceil

Returns ceil value.

Usage

key:
  _ceil: 1.1

will be rendered as:

key: 2

_round

Returns rounded value.

Usage

key:
  _round: 1.1
key2:
  _round: 1.9

will be rendered as:

key: 1
key2: 2