摘要 |
<P>PROBLEM TO BE SOLVED: To provide a fraction processing device capable of performing a fraction processing using a rounding width as it is and performing a fraction processing to minimize a rounding error as in the JIS standard using the rounding width as it is. <P>SOLUTION: The fraction processing device is comprised of an input means 1 for inputting a numerical value (x) subjected to a fraction processing and a rounding width (w), a numerical value storage means 21 which stores therein the input numerical values (x) for each digit, a rounding width storage means 22 which stores the input rounding width (w), a low-order numerical value extraction means 31 which extracts a low-order numerical value (y) constituted of the digit lower than the digit corresponding to the rounding width (w) stored in the rounding width storage means, and a fraction processing means 4 which, based on the result of comparing the rounding width (w) stored in the rounding width storage means with the numerical value obtained by doubling the low-order numerical value (y) extracted by the low-order numerical value extraction means, replaces the numerical value (x) stored in the numerical value storage means with a numerical value selected from the sequence of the integral multiple of the rounding width (w) stored in the rounding width storage part. <P>COPYRIGHT: (C)2005,JPO&NCIPI |