Skip to content

Divide Operator

IsaacShelton edited this page Mar 21, 2022 · 1 revision

/ Operator

The / operator is used for dividing two numeric types.

1.0f / 2.0f

Override

The / operator can be defined for non-numeric types or type combinations with the following:

func __divide__(a $A, b $B) $C 

where $A, $B and $C are any valid types

See __divide__ for more information.

Clone this wiki locally