From QB64 Wiki
Revision as of 17:17, 4 February 2021 by Dkearns (talk | contribs) (Add page sections/Add link to multiplication operator)
Jump to navigation Jump to search

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


return_value = number / divisor


  • 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

Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page