Integer Division

Navigation:  Language Reference > Operators > Arithmetic >

Integer Division

Previous pageReturn to chapter overviewNext page

Syntax

a div b

Description

a div b divides the scalar a by the scalar b and rounds the output toward zero.

Examples

a

b

a div b

10

5

2

9.9

5

1

-8

2

-4

-7.9

2

-3

-7.9

-2

3

Limitations

a and b must be scalars.