Difference between revisions of "Manuals/calci/UNITMOD"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <div style="font-size:30px">'''UNITMOD( | + | <div style="font-size:30px">'''UNITMOD(a,b) '''</div><br/> |
− | *<math> | + | *<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{ | + | *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> | + | *This function gives an error when <math>b</math> value is 0. |
− | *<math> | + | *<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> | + | *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( | + | *The syntax is to calculate remainder of the given numbers in ZOS is <math>UNITMOD(a,b)</math>. |
− | **<math> | + | **<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) | ||
Revision as of 16:22, 26 June 2018
UNITMOD(a,b)
- and are any real numbers.
Description
- 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: with remainder . Here is the dividend, is the divisor, is the Quotient and is the remainder.So .
- For e.g., UNITMOD(5,2)=1. Here 1 is the remainder.
- This function gives an error when value is 0.
- and can be positive or negative. Suppose and are of same sign either '+' or '-',then the resultant sign is also the same.
- But and are with different sign, then the result will come with the sign of .
ZOS
- The syntax is to calculate remainder of the given numbers in ZOS is .
- and are any real numbers.
- For e.g.,UNITMOD(10,2),UNITMOD(50.2,-4)
Examples
- =UNITMOD(5,2)=1
- =UNITMOD(-11,-3)=-2
- =UNITMOD(25,5)=0
- =UNITMOD(12,-4)=0
- =UNITMOD(85,-9)=4
- =UNITMOD(-52,7)=-3
- =UNITMOD(0,9)=0
- =UNITMOD(9,0)=NAN
- =UNITMOD(5.5,2)=1.5
Related Videos
See Also
References