摘要 |
A numeric representation converting apparatus comprises a weight determining circuit, a decimal alignment circuit, a converting circuit, and a selecting circuit. The weight determining circuit determines the weight of a mantissa part of an input floating-point number, based on the value of an exponent part of that number. The decimal alignment circuit shifts digits of the value of the mantissa based on the determined weight of the mantissa. The converting circuit converts the value of the integer part of the value obtained by the decimal alignment circuit to a representation of a negative number, and truncates the value of the negative number either in the direction of the more negative number or the less negative number. Finally, the selecting circuit outputs either the integer part of the value obtained by the decimal alignment circuit or the value obtained by the converting circuit.
|