Difference between revisions of "Mod"
From Mesham
Jump to navigationJump to searchm (4 revisions imported) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
#include <maths> | #include <maths> | ||
− | var a:=mod(7,2); | + | |
− | + | function void main() { | |
+ | var a:=mod(7,2); | ||
+ | var y:=mod(a,a); | ||
+ | }; | ||
+ | |||
+ | ''Since: Version 0.41b'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:Maths Functions]] | [[Category:Maths Functions]] |
Latest revision as of 15:44, 15 April 2019
Overview
This mod(n,x) function will divide n by x and return the remainder.
- Pass: Two integers
- Returns: An integer representing the remainder
Example
#include <maths> function void main() { var a:=mod(7,2); var y:=mod(a,a); };
Since: Version 0.41b