Skip to content

Commit

Permalink
fix division
Browse files Browse the repository at this point in the history
  • Loading branch information
amattioc committed Apr 8, 2024
1 parent 5fcd00d commit 63acba8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions v2.1/docs/operators/Division/content.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ None.
Behavior
--------

The operator has the behaviour of the "Operators applicable on two Scalar Values or Data Sets or Data Set Components" (see the section "Typical behaviours of the ML Operators").
According to the general rules about data types, the operator can be applied also on sub-types of number, that is the type integer.
If the type of both operands is integer then the result has type integer.
If one of the operands is of type number, then the other operand is implicitly cast to number and therefore the result has type number.
The operator has the behaviour of the “Operators applicable on two Scalar Values or Data Sets or Data Set Components”
(see the section “Typical behaviours of the ML Operators”). According to the general rules about data types,
the operator can be applied also on sub-types of number, that is the type integer. The result has type number.

If op2 is 0 then the operation generates a run-time error.

0 comments on commit 63acba8

Please sign in to comment.