/: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary Tag: Reverted |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The | The '''/''' mathematical operator performs decimal point division on a numerical value. | ||
{{PageSyntax}} | {{PageSyntax}} | ||
: {{Parameter|return_value}} = {{Parameter|number}} [[/]] {{Parameter|divisor}} | : {{Parameter|return_value}} = {{Parameter|number}} [[/]] {{Parameter|divisor}} | ||
Line 19: | Line 19: | ||
{{PageNavigation}} | {{PageNavigation}} | ||
Latest revision as of 22:30, 31 January 2023
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.
- Return values can be any literal or variable numerical type, but SINGLE or DOUBLE type decimal point returns are likely.
- Values returned may be expressed using exponential or scientific notation using E for SINGLE or D for DOUBLE precision.
- 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