Divides one number (dividend) by another (divisor) and returns a numeric result.
| Property | Type | Description |
|---|---|---|
| Dividend | Number | The number to be divided by another number (divisor). |
| Divisor | Number | The number to divide another number (dividend). |
| RoundingDecimalPositions | Number | Rounds the result "down" if roundingDecimalPositions is not null and >= 0. An example would be rounding 23.5 to 23. |
- If dividend is null, then returns null.
- If divisor is null, then returns dividend.
Comments
2 comments
I need to divide by .45, this results in a rule error
If
.45is typed as a literal string or comes from a text field/variable, the action may reject it because the Divisor property expects a Number type. Check that the source is a numeric field, or convert it explicitly before passing it in.If that doesn't work, try entering it as
0.45. This is the quickest thing to test whether the engine is parsing the decimal.Please sign in to leave a comment.