<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>The KCalc Handbook: Comments on specific functions</TITLE>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="keywords" CONTENT="">
<META NAME="description" CONTENT="">
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#aa0000" TEXT="#000000" > 
<FONT FACE="Helvetica">
<A HREF="http://www.kde.org/"><IMG SRC="logotp3.gif" BORDER="0" ALT="The K Desktop Environment"></A>
<HR WIDTH="100%" SIZE=2 ALIGN="CENTER" NOSHADE>

 
<P ALIGN="RIGHT">

<A HREF="index-7.html">Next</A>
<A HREF="index-5.html">Previous</A>
<A HREF="index.html#toc6">Table of Contents</A>
</P>
<H3><A NAME="s6">6. Comments on specific functions</A></H3>

<P>
<P>
<H3><A NAME="ss6.1">6.1 Mod</A>
</H3>

<P>Give the remainder of dividing the display number by the next input number.
<P>
<P>
<H3><A NAME="ss6.2">6.2 Inv Mod</A>
</H3>

<P>Integer divison of the display number by the next input number.
<P>
<P>
<H3><A NAME="ss6.3">6.3 %</A>
</H3>

<P>
<P>Interpret the final operation carried out in  the current 
calculation as follows:
<P>
<UL>
<LI>The function of the % key is similar to the one found on some CASIO calculators:
</LI>
<LI>If the final operator is + give the percentage increase
the result is over the second operand.
</LI>
<LI> If the final operator is - give the percentage decrease the result 
is over the second operand.
</LI>
<LI>If the final operator is * give the right operand 
as a percentage of the left operand.
</LI>
<LI>If the final operator is / or Mod, give the left operand
as a percentage of the right operand.
</LI>
<LI>If the final operator is x**y give the left operand 
raised to the power of the (right operand / 100).
</LI>
<LI> In all other cases the % key gives identical results to the = key.
</LI>
</UL>
                              
<H4>Examples</H4>

<P>
<PRE>

Type:             45 / 55 %
Answer Displayed: 81.8181...
Explanation:      45 is 81.81...percent of 55

Type:             11 + 89 %
Answer Displayed: 112.35.. 
Explanation:      89 + 11 = 100 and  100 is 112.35 percent of 89. 
</PRE>
<P>
<H3><A NAME="ss6.4">6.4 Lsh (Rsh)</A>
</H3>

<P>Left (right) shift the n times, where n is the next input number.
You get Rsh (right shift)  by pressing INV Lsh.
<P>
<P>
<P>
<P ALIGN="RIGHT">

<A HREF="index-7.html">Next</A>
<A HREF="index-5.html">Previous</A>
<A HREF="index.html#toc6">Table of Contents</A>
</P>
<CENTER>
<HR WIDTH="100%" SIZE=3 ALIGN=CENTER NOSHADE>
</CENTER>    
</FONT>

 
</BODY>
</HTML>
