


NOTE: QCalc internally uses the Tcl command expr to evaluate the expressions. ($0111 & $GPIO_EXTIPINSELL_EXTIPINSEL0_MASK) << ($GPIO_EXTIPINSELL_EXTIPINSEL1_SHIFT * 12) – (see user-defined variables) Pow(sin($pi),2) + pow(cos($pi),2) – scientific floating-point calculations, pi-constant ((0xBEEF > 8) ^ 0xFFF0 – mixed binary, dec and hex numbers Some examples of acceptable expressions are: QCalc is also a powerful floating-point scientific calculator and supports all mathematical functions (sin(), cos(), tan(), exp(), ln(), …). Among others, the expressions can contain all bit-wise operators (>, |, &, ^, ~) as well as mixed decimal, hexadecimal and even binary constants. The most important feature of QCalc is that it accepts expressions in the C-syntax – with the same operands and precedence rules as in the C or C++ source code.
#Speedcrunch bit converter how to
I begin with describing QCalc features and then I tell you how to download and launch it. But can your calculator accept complete expressions in the C-syntax, which you can cut-and-paste directly to and from your embedded code? How many buttons do you need to push to see your result in decimal, hex and binary? Well, QCalc can do this with less hassle than anything else I’ve seen out there. I’m sure that you already have your favorite calculator online or on your smartphone.

Today, I’d like to start with my cross-platform Programmer’s Calculator called QCalc. In this blog, I’d like to share some of my tools with you. And these generally useful tools ended up in my Embedded Toolbox. Some of them proved to me more useful than others. Like any craftsman, I have accumulated quite a few tools during my embedded software development career.
