/ Operator, \ Operator

Purpose

Used to divide two numbers. The result is a double.

Syntax

# = exp1 / exp2

int = exp1 \ exp2

Description

The / operator always performs floating-point division. To force integer division use the \ operator or use Div.

Example

OpenW 1

Global x%, y%, a%

x = 36

y = 3

Print x / /* Result: 12

KeyGet a%

CloseW 1

See Also

+, -, ^, *, /, \, %, Add, Sub, Mul, Div, ++, --, +=, -=, /= , *=, Operator Hierarchy

{Created by Sjouke Hamstra; Last updated: 05/09/2021 by James Gaite}