Changes

Jump to navigation Jump to search
No change in size ,  22:22, 26 June 2018
no edit summary
Line 1: Line 1: −
<div style="font-size:30px">'''UNITMOD(A,B) '''</div><br/>
+
<div style="font-size:30px">'''UNITMOD(a,b) '''</div><br/>
*<math>A</math> and <math>B</math> are any real numbers.
+
*<math>a</math> and <math>b</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{A}{B}= Q</math> with remainder <math>R</math>. Here <math>A</math> is the dividend, <math>B</math> is the divisor, <math>Q</math> is the Quotient and <math> R</math> is the remainder.So <math> UNITMOD(A,B)=R</math>.  
+
*When we divide two integers we will get the result like this:  <math>\frac{a}{b}= q</math> with remainder <math>r</math>. Here <math>a</math> is the dividend, <math>b</math> is the divisor, <math>q</math> is the Quotient and <math> r</math> is the remainder.So <math> UNITMOD(a,b)=r</math>.  
 
*For e.g., UNITMOD(5,2)=1. Here 1 is the remainder.
 
*For e.g., UNITMOD(5,2)=1. Here 1 is the remainder.
*This function gives an error when <math>B</math> value is 0.
+
*This function gives an error when <math>b</math> value is 0.
*<math>A</math> and <math>B</math> can be positive or negative. Suppose <math>A</math> and <math>B</math> are of same sign either '+' or '-',then the resultant sign is also the same.  
+
*<math>a</math> and <math>b</math> can be positive or negative. Suppose <math>a</math> and <math>b</math> are of same sign either '+' or '-',then the resultant sign is also the same.  
*But <math>A</math> and <math>B</math> are with different sign, then the result will come with the sign of <math>A</math>.
+
*But <math>a</math> and <math>b</math> are with different sign, then the result will come with the sign of <math>a</math>.
    
==ZOS==
 
==ZOS==
*The syntax is to calculate remainder of the given numbers in ZOS is <math>UNITMOD(A,B)</math>.
+
*The syntax is to calculate remainder of the given numbers in ZOS is <math>UNITMOD(a,b)</math>.
**<math>A</math> and <math>B</math> are any real numbers.
+
**<math>a</math> and <math>b</math> are any real numbers.
 
*For e.g.,UNITMOD(10,2),UNITMOD(50.2,-4)
 
*For e.g.,UNITMOD(10,2),UNITMOD(50.2,-4)
  
writer
6,694

edits

Navigation menu