Changes

Jump to navigation Jump to search
272 bytes added ,  05:59, 3 July 2014
no edit summary
Line 1: Line 1: −
<div style="font-size:30px">'''MOD(n,d) '''</div><br/>
+
<div style="font-size:30px">'''MOD(number,divisor) '''</div><br/>
*<math>n</math> is any real number and <math>d</math> is the divisor 
+
*<math>number</math> and <math>divisor</math> are any real numbers.
    
==Description==
 
==Description==
 
*This function gives the remainder of the number after dividing with some number.
 
*This function gives the remainder of the number after dividing with some number.
 
*When we divide two integers we will get the result like this:  <math>\frac{X}{Y}= Q</math> with remainder <math>R</math>. Here <math> X </math> is the dividend, <math>Y</math> is the divisor, <math>Q</math> is the Quotient and <math> R</math> is the remainder.So <math> MOD(n,d)=R</math>.  
 
*When we divide two integers we will get the result like this:  <math>\frac{X}{Y}= Q</math> with remainder <math>R</math>. Here <math> X </math> is the dividend, <math>Y</math> is the divisor, <math>Q</math> is the Quotient and <math> R</math> is the remainder.So <math> MOD(n,d)=R</math>.  
*For e.g., MOD(5,2)=1. Here 1 is the remainder.  
+
*For e.g., MOD(5,2)=1. Here 1 is the remainder.
 +
*Ler number be "n" and the divisor be "d"
 
*The <math>MOD</math> function we can write using <math>INT</math> function: <math> MOD(n,d)=n-d*INT(n/d)</math>.
 
*The <math>MOD</math> function we can write using <math>INT</math> function: <math> MOD(n,d)=n-d*INT(n/d)</math>.
 
*This function will return the result as error when the <math>d</math> value is 0.
 
*This function will return the result as error when the <math>d</math> value is 0.
 
*Suppose the value of <math>n</math> and <math>d</math> with same sign either '+' or '-',then the result also with same sign.  
 
*Suppose the value of <math>n</math> and <math>d</math> with same sign either '+' or '-',then the result also with same sign.  
 
*But <math>n</math> and <math>d</math> are with different then the result will come with the <math> d </math> sign only.
 
*But <math>n</math> and <math>d</math> are with different then the result will come with the <math> d </math> sign only.
 +
 +
==ZOS Section==
 +
*The syntax is to calculate remainder of the given numbers in ZOS is <math>MOD(number,divisor)</math>.
 +
**<math>number</math> and <math>divisor</math> are any real numbers.
 +
*For e.g.,mod(10,2),mod(50.2,-4)
    
==Examples==
 
==Examples==
writer
6,694

edits

Navigation menu