Gexpr is a shell calculator with floating point, standard C functions, relational operators, and output in base 2/8/10/16. It is a light alternative to bc(1). It can also be used to add floating point math to shell scripts.