Changes

Jump to navigation Jump to search
131 bytes removed ,  05:44, 6 April 2017
no edit summary
Line 6: Line 6:  
*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.
*Let number be "A" and the divisor be "B"
+
*This function gives an error when <math>B</math> value is 0.
*The <math>UNITMOD</math> function we can write using <math>INT</math> function: <math> UNITMOD(A,B)=A-B*INT(A/d)</math>.
+
*<mathA</math> and <math>B</math> can be positive or negative. Suppose <mathA</math> and <math>B</math> are of same sign either '+' or '-',then the resultant sign is also the same.  
*This function will return the result as error when the <math>d</math> value is 0.
+
*But <math>A</math> and <math>B</math> are with different then the result will come with the <math> B </math> sign only.
*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.
      
==ZOS==
 
==ZOS==
writer
2,661

edits

Navigation menu