Relative Content

Tag Archive for floating-point

How do you get the ULP a number with a maximum mantissa value?

The way I understand ULP is that it is the gap between two consecutive floating point numbers. The book I’m reading says that ULP = machine epsilon times two to the exponent. This seems correct to me only if the two numbers have the same exponent.

Implementing base-10 floating point division

I’m implementing floating-point arithmetic, for a micro-controller which does not support floating point numbers, in either hardware or software.
(Software being “written” in a sort of electrical diagram program.)
I’ve finished encoding/decoding from/to integers, adding, subtracting, and multiplication.
My “floats” are represented as C * 10^E, where: