Logarithmic number system Logarithmic number system A logarithmic number system (LNS) is an arithmetic system used for representing real numbers in computer and digital hardware, especially for digital signal processing. In an LNS, a number, formula_1, is represented by the logarithm, formula_2, of its absolute value as follows: where formula_4 is a bit denoting the sign of formula_1 (formula_6 if formula_7 and formula_8 if formula_9). The number formula_2 is represented by a binary word which usually is in the two's complement format. An LNS can be considered as a floating-point number with the significand being always equal to 1 and a non-integer exponent.
Binary number In fact, the only binary fractions with terminating expansions are of the form of an integer divided by a power of 2, which 1/10 is not. The final conversion is from binary to decimal fractions. The only difficulty arises with repeating fractions, but otherwise the method is to shift the fraction to an integer, convert it as above, and then divide by the appropriate power of two in the decimal base. For example: Another way of converting from binary to decimal, often quicker for a person familiar with hexadecimal, is to do so indirectly—first converting (formula_12 in binary) into (formula_12