MicroFloat


MicroFloat is a Java software library for doing IEEE-754 floating-point math on small devices which don't have native support for floating-point types. Basically this means Java-powered mobile phones (J2ME CLDC 1.0), but I imagine that it could be useful in other similar environments, such as embedded systems.

In this package you get support for 32-bit "float" and 64-bit "double" data types, including all primitive operations supported by J2SE (add, subtract, multiply, divide, mod, comparisons, typecasts) as well as a full reproduction of all methods in java.lang.Math (sin, cos, exp, pow, log, etc.). In theory, these operations should return results which are fully compliant with the IEEE-754 and J2SE specs.

Consult the javadoc for more information on how to use the library.

You can download the source here: microfloat-1.0.tgz or microfloat-1.0.zip

The contents of this library are Copyright (c) 2003,2004 David Clausen, all rights reserved. Use and distribution are governed by the GNU General Public License


home | contact