Active Topics

 


Reply
Thread Tools
Posts: 34 | Thanked: 6 times | Joined on Dec 2007 @ Idaho Falls, ID
#1
For a while I've been looking for a simple programmer's calculator. I didn't need graphing capabilities, or even RPN. Just something to allow me to convert numbers from one base to another, do bitwise operations, etc.

Finally I found clarence (sorry, no link, the original programmer's site seems to be down, but you can google it). From its man page:

"Clarence is a programmer's scientific calculator written in Python. It has GUI based on PyGTK, uses all Python's operators, math module functions and constants. It can handle all basic numerical formats including Dec, Hex, Bin, Oct, and ASCII."

Being just a python script, it runs fine on my n800, although the interface is kinda clunky as it's not hildonized or whatever. I'm sure someone with some experience doing python development for the IT could have it working a lot more cleanly in no time.

Anyway, it's been of great use to me as a developer, so I thought I might share and see if anybody else had something else even better.

-SG
 
tz1's Avatar
Posts: 716 | Thanked: 236 times | Joined on Dec 2007
#2
There is also "Pyculator" which I leave on my home panel. It basically does a python eval on typed strings so it works well for this (with hex(int) and oct(int) if needed).
 
Posts: 191 | Thanked: 29 times | Joined on Sep 2007 @ Ottawa
#3
There is also BC which runs in an xterm. To convert bases you would set the input base and the output base, for example:
bc
ibase=8
obase=16
477
18B (bc prints out this answer)

I hope this helps,

Craig...
__________________
N800, Think Outside Kbd, 8GB SDHC Card (OCZ, ext2), and 8GB SD Card (Patriot formatted as VFAT)
Zaurus SL-6000, IR Keyboard, 1GB SD Card
 

The Following User Says Thank You to cvmiller For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:55.