PDC 0.9

A desktop calculator
PDC is a desktop calculator in the 'bc' style with features designed for programmers. It does not support floating point maths but does provide all the C operators (logical, bitwise, shifts etc.) and implements ISO C operator precedence. Additionally functions are available to perform population counts and byte swaps.

PDC is written in YACC and C and is free software licenced under the GNU General Public Licence. PDC more or less finished and has the potential to be very useful.

Here are some key features of "PDC":

· mathematic operators +, -, *, /, %
· logic operators &&, ||, !
· bitwise operators &, |, ^, ~,
· uses ANSI C operator precedence
· prefix numbers with 0b, 0, 0d and 0x to support binary, octal, decimal and hex regardless of input base
· output numbers in any number base of 16 or less
· functions to assist with 'bit bashing'
· command line expression evaluation


· GNU Readline library


PDC is supplied with a simple makefile. It should build with no modifications on most Unix-like operating systems. However, you may need to change the compilation flags (for example, to remove -Wall) if you are not using gcc.

By default PDC is built against the GNU readline library. If your system does not have the library installed, set WITHOUT_READLINE on the make command line (make WITHOUT_READLINE=1). You'll know if you don't have the library due to all the errors. :-) DJGPP users who have CmdEdit installed can use that instead by setting HAVE_CMDEDIT.

What's New in This Release:

· Fixed bug with > being treated as

last updated on:
March 12th, 2008, 9:00 GMT
developed by:
Daniel Thompson
license type:
GPL (GNU General Public License) 
ROOT \ Science and Engineering \ Mathematics
Download Button

In a hurry? Add it to your Download Basket!

user rating 16



Rate it!

Add your review!