NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_div.nxc
This is an example of how to use the
div
function.
task main()
{
long
x, y;
x = 31464;
y = 33;
div_t
r;
r =
div
(x, y);
NumOut
(0,
LCD_LINE1
, r.
quot
);
NumOut
(0,
LCD_LINE2
, r.
rem
);
Wait
(
SEC_3
);
}
Generated by
1.8.2