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.