{{htmlmetatags>metatag-robots=()
metatag-title=(DIV | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for DIV)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(DIV | ugBASIC User Manual)
metatag-og:description=(Manual page for DIV)
}}
====== ugBASIC User Manual ======
===== DIV ✓ =====
===== SYNTAX =====
DIV var, divisor[, remainder]
==== PURPOSE ====
The ''DIV'' statement allows you to make a division using the dividend
as a variable where the result will be stored. Optionally, it is possible
to indicate a variable where to store the remainder of the division operation.
==== EXAMPLE ====
DIV a,2
DIV a,3,q
See also the following example files:
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/contrib_sierpinski3.bas|contrib_sierpinski3.bas]]''
==== ABBREVIATION ====
Dv
==== AVAILABLE ON ====
==== ANY PROBLEM? ====
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON DIV|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]