[Tutorial] Modulo Operator
#5

Quote:
Originally Posted by Hansrutger
View Post
Now you're asking what a rest is, look below:
Code:
Rest examples:
0.5 = Rest is 0.5
1.2 = Rest is 0.2 
5.852 = Rest is 0.852
1000000.52 = Rest is 0.52
Figure 3
It is everything after the comma sign. If you have larger numbers you will have to multiply the "rest" with the modulo number after removing anything to the left of the comma sign.
This is incorrect. What you're describing here is called the fractional part. The actual "rest" is the result of the modulo calculation.
Reply


Messages In This Thread
Modulo Operator - by Hansrutger - 02.01.2014, 20:02
Re: Modulo Operator - by Patrick - 02.01.2014, 23:25
Re: Modulo Operator - by Hansrutger - 03.01.2014, 00:34
Re: Modulo Operator - by Sawalha - 03.01.2014, 05:52
Re: Modulo Operator - by Vince - 03.01.2014, 10:28
Re: Modulo Operator - by Hansrutger - 03.01.2014, 12:53
Re: Modulo Operator - by newbie scripter - 03.01.2014, 15:18
Re: Modulo Operator - by [CG]Milito - 03.01.2014, 15:56
Re: Modulo Operator - by Battlezone - 29.07.2015, 21:05

Forum Jump:


Users browsing this thread: 1 Guest(s)