Console Calculator
Frequently Asked Questions

 

1. I want to do an XOR operation with two binary numbers.  I change to binary display and enter 11101^1110, but the answer is huge.  What’s wrong?

The proper notation should be:  0b11101@0b1110.  First, the display base is binary, but the default base when entering numbers is always decimal.  A number must start with 0b to indicate binary representation.  Second, in CCalc the ^ symbol is not the XOR operator, ^ is the power or exponent operator. Please see the CCalc Operators List in the manual. 

 

2. Is there an IF function like Excel:  IF(x==3, 4, 5) ?

Meaning, if x==3, then 4, else 5.  No, it is not built-in, but you can define such a function yourself. Here is an example:
IF(tf,a,b) = (tf!=0)*a+(tf==0)*b

 

3. Why does the minus key ‘-‘ not operate on the previous answer like +, * and / ?

At the start of a new prompt, most operator keys automatically insert ‘ans’ to operate on the previous answer, but ‘-‘ is sometimes intended to enter a negative number, not subtract something from the previous answer.  If you want to operate on the previous answer, just press the minus key twice, and ‘ans-‘ will appear. 


4. I purchased a license for CCalc (Windows version).  When will I get a registration code, and how do I enter it?

You will receive an email with the registration code and instructions to register.  You will receive an email within 24 hours, but the process is only semi-automated, so plus or minus a few hours.  When you get your registration code email, type “register ccalc” at the prompt, or go to the “Help” menu, “About CCalc”, and “Enter Reg Code”.

 

5. Is there a CCalc variant for Linux?

Nope.  I’ve had success running CCalc using WINE, however.

 

6. What about CCalc for the iPhone?

Unlikely.  The console + keyboard interface makes CCalc great for a PC, but doesn’t translate so well to an iPhone.