Skip to main content

Divide

This formula allows you to perform an arithmetic division among numbers.

Returns

integer | decimal

JSON Format

{
"type": "divide",
"components": ...,
"rounding_method": ...
}

RPG Script

This component can be written in RPG Script as:

divide(...)

Note: If your JSON uses rounding_method, make sure your RPG Script form preserves it (e.g. a dedicated helper/function or syntax your DSL supports), so it doesn't silently become plain /.

Fields

FieldTypeRequiredDescription
rounding_methodRoundingMethodThe rounding method to be used for the operation.