Division /

Operator: /

The Division operator / is used to divide one value by another.

The values can be of the following type:

  • number

  • duration

This function is SQL compatible. For more information about SQL compatibility, see our documentation.

Returns a new value that is the result of the division of value1 by value2.

The type of the resulting value is dependent on the types of value1 and value2:

  • number / number returns a number

  • duration / number returns a duration

  • duration / duration returns a number

value1 / value2

35 / 7 => 5

'12d' / 24 => 12 hours

'1m' / '1s' => 60

10 / 0 => unknown

Last updated