# Difference between revisions of "/"

Jump to navigation
Jump to search

imported>Clippy m |
imported>Clippy m |
||

Line 13: | Line 13: | ||

* Return values can be any literal or variable numerical type, but [[SINGLE]] or [[DOUBLE]] type decimal point returns are likely. | * Return values can be any literal or variable numerical type, but [[SINGLE]] or [[DOUBLE]] type decimal point returns are likely. | ||

* Use the [[\]] integer division operator to guarantee [[INTEGER]] or [[LONG]] return values. | * Use the [[\]] integer division operator to guarantee [[INTEGER]] or [[LONG]] return values. | ||

* Division and multiplication operations are performed before addition and subtraction in Qbasic's order of operations. | |||

## Revision as of 01:34, 3 July 2010

The **/** mathematical operator performs decimal point division on a numerical value.

*Syntax:* return_value = number / divisor

## Description

- Number value can be any literal or variable numerical type.
- Divisor can be any literal or variable numerical type also.
- Return values can be any literal or variable numerical type, but SINGLE or DOUBLE type decimal point returns are likely.
- Use the \ integer division operator to guarantee INTEGER or LONG return values.
- Division and multiplication operations are performed before addition and subtraction in Qbasic's order of operations.

*See also:*

\ (integer division operator)

*Navigation:*