JP3194080B2 - Fraction processing device - Google Patents

Fraction processing device

Info

Publication number
JP3194080B2
JP3194080B2 JP24381696A JP24381696A JP3194080B2 JP 3194080 B2 JP3194080 B2 JP 3194080B2 JP 24381696 A JP24381696 A JP 24381696A JP 24381696 A JP24381696 A JP 24381696A JP 3194080 B2 JP3194080 B2 JP 3194080B2
Authority
JP
Japan
Prior art keywords
digit
integer
numerical value
determined
rounding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP24381696A
Other languages
Japanese (ja)
Other versions
JPH1091398A (en
Inventor
知明 吉見
Original Assignee
株式会社データアクション
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社データアクション filed Critical 株式会社データアクション
Priority to JP24381696A priority Critical patent/JP3194080B2/en
Publication of JPH1091398A publication Critical patent/JPH1091398A/en
Application granted granted Critical
Publication of JP3194080B2 publication Critical patent/JP3194080B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、分析、計測、調査
等に必要な端数処理装置に関する。より詳細には、有効
数字による桁指定及びJIS規格に従った数値丸めが可
能な端数処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a fraction processing device required for analysis, measurement, investigation and the like. More particularly, it relates to a numerical rounding capable rounding apparatus in accordance with the digit specification and JIS standards by significant digits.

【0002】[0002]

【従来の技術】一般に、四捨五入等に代表される端数処
理は広く行われており、例えば、実験データの整理、会
計処理等を挙げることができる。四捨五入を行う処理
は、高級言語やデータ処理ソフトにおいては関数として
用意されていることが多く、ユーザーは、数値と処理す
る桁の位置とを指定することにより、四捨五入された数
値を得ることが可能である。
2. Description of the Related Art In general, fraction processing represented by rounding is widely performed, and examples thereof include organizing experimental data and accounting processing. The process of rounding is often provided as a function in high-level languages and data processing software, and the user can obtain the rounded number by specifying the numerical value and the position of the digit to be processed. It is.

【0003】図6に従来の四捨五入関数が行う処理を示
す。まず、ユーザーが処理する数値xと処理する桁の位
置pを入力する(ステップS601)。処理する桁の位
置pは、例えば、百の位であれば−2、整数にするので
あれば、0、小数点以下第3位であれば+3のようにし
て指定する方法が挙げられる。次に、与えられた数値x
を各桁毎にメモりに格納し(ステップS602)、指定
された桁の位置pの1つ右の桁の数値をメモリから取得
し(ステップS603)、該数値が5以上であるかを判
別する(ステップS604)。そして、判別結果が5以
上となった時には切り上げ処理を行い(ステップS60
5)、5以上でない時には切り捨て処理を行う(ステッ
プS606)。このように、従来の関数で行われている
条件分岐処理は、複数桁の内の1つの桁のみを取り出し
て条件分岐処理を行うものであった。
FIG. 6 shows processing performed by a conventional rounding function. First, the user inputs a numerical value x to be processed and a digit position p to be processed (step S601). For example, the position p of the digit to be processed is specified as -2 for hundreds, 0 for integers, and +3 for the third decimal place. Next, given numerical value x
Is stored in a memory for each digit (step S602), and the numerical value of the digit immediately to the right of the designated digit position p is obtained from the memory (step S603), and it is determined whether the numerical value is 5 or more. (Step S604). When the result of the determination is 5 or more, a round-up process is performed (step S60).
5) If it is not 5 or more, a truncation process is performed (step S606). As described above, the conditional branch processing performed by the conventional function is performed by extracting only one digit from a plurality of digits and performing the conditional branch processing.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来技
術には以下の問題点があった。
However, the prior art has the following problems.

【0005】(1)処理する桁を有効桁数で指定できな
い 現在市販されている表計算ソフトは、もともと有効数字
で処理桁を指定するという概念を持っていない。
(1) The digits to be processed cannot be designated by the number of significant digits Currently, spreadsheet software currently on the market does not originally have the concept of designating the digits to be processed by significant digits.

【0006】また、最高位の桁から数えて指定された桁
を処理するようにしても、従来の条件分岐処理、即ち複
数桁の内の1つの桁のみを取り出して判別処理を行うよ
うな処理手順である限り、小数点を跨ぐ形で有効桁数で
指定できるようにするためには、他の条件分岐処理が必
要となる。例えば、0.0000234を有効数字2桁
として四捨五入を行う場合、もしそのまま数えると小数
点第3位を取り込んで端数処理してしまう。そのため、
最高位の桁から順に数値を取り込みながら数えていき、
取り込んだ数が0であるか否かの判断を行い、0であれ
ばその桁は数えないというような条件分岐処理が必要と
なる。しかも、例えば、有効数字4桁として四捨五入を
行う場合、その数値が30200であれば、千の位の
0、十の位0、一の位の0はいずれもカウントしなけれ
ばならず、0.34502であれば一の位の0はカウン
トしないが、小数点第4位の0等は数えなければならな
いため、更に多くの条件分岐処理が必要となる。
In addition, even if the designated digit is processed by counting from the highest digit, the conventional conditional branching process, that is, a process of taking out only one of a plurality of digits and performing a discriminating process is performed. As far as the procedure is concerned, other conditional branch processing is required so that the number of significant digits can be specified across the decimal point. For example, when rounding off with 0.0000234 as two significant digits, if the count is made as it is, the third decimal place is taken in and rounded. for that reason,
Count while taking in numerical values in order from the highest digit,
It is determined whether or not the fetched number is 0, and if it is 0, a conditional branching process is required such that the digit is not counted. In addition, for example, in the case of rounding off to four significant figures, if the numerical value is 30,200, all of the thousands place, the tens place, and the ones place must be counted. If it is 34502, the first-place zero is not counted, but the fourth-place zero and the like must be counted, so more conditional branch processing is required.

【0007】このように従来の処理手順によると、端数
処理を行う桁を有効桁数で指定する場合、非常に複雑な
処理とならざるを得なかった。このため、従来の関数は
有効数字で桁を指定することを認めておらず、また、有
効数字で桁を指定することができる表計算ソフトもなか
った。
As described above, according to the conventional processing procedure, when the digits to be subjected to the fraction processing are specified by the number of significant digits, the processing must be very complicated. For this reason, the conventional function does not permit designating digits with significant figures, and there is no spreadsheet software capable of designating digits with significant figures.

【0008】本発明は、端数として処理する桁を有効数
字という概念で指定することが可能な端数処理ソフトを
提供することを第1の目的とするものである。
It is a first object of the present invention to provide fraction processing software capable of designating a digit to be processed as a fraction with the concept of a significant digit.

【0009】(2)JIS規格に対応できない 単純な四捨五入では、データの数字によって結果に偏り
が生じてしまうため、その偏りを補正する端数処理、即
ち丸めが必要となる。JIS規格では、そのための丸め
方法を定めており、例えば官公庁に提出する資料等で
は、このJIS規格に従って、数値の丸めを行わなけれ
ばならない場合が多い。
(2) Inapplicability to JIS standard With simple rounding, the result is biased by the number of data, so fraction processing for correcting the bias, that is, rounding is required. The JIS standard defines a rounding method for that purpose. For example, in the case of materials to be submitted to public offices, it is often necessary to round a numerical value in accordance with the JIS standard.

【0010】図7にJIS規格(Z8401)で定める
丸め方法を示す。これは、基本的には四捨六入を行い、
残った5について振り分け処理を行うものである。ある
数値を有効数字n桁の数値に丸める場合には(n+1)
桁目以下の数値を、次のように整理する。 (a) (n+1)桁目以下の数値がn桁目の1単位の
1/2未満の場合には切り捨てる。 (b) (n+1)桁目以下の数値がn桁目の1単位の
1/2を越える場合にはn桁目を1単位だけ増す。 (c) (n+1)桁目以下の数値がn桁目の1単位の
1/2である場合には次の(i)(ii)のようにする。 (i) n桁目の数値が、0、2、4、6、8であれば切
り捨てる。 (ii) n桁目の数値が、1、3、5、7、9であれば、
n桁目を1単位だけ増す。
FIG. 7 shows a rounding method defined by the JIS standard (Z8401). This basically rounds off,
The remaining 5 is subjected to a sorting process. (N + 1) to round a number to a number with n significant digits
The numbers below the first digit are arranged as follows. (A) If the value of the (n + 1) th digit or less is less than 1/2 of one unit of the nth digit, it is truncated. (B) If the value of the (n + 1) th digit or less exceeds 1/2 of one unit of the nth digit, the nth digit is increased by one unit. (C) When the numerical value of the (n + 1) th digit or less is 1/2 of one unit of the nth digit, the following (i) and (ii) are performed. (i) If the value of the n-th digit is 0, 2, 4, 6, or 8, round down. (ii) If the n-th digit is 1, 3, 5, 7, 9
Increase the nth digit by one unit.

【0011】有効数字とは、0でない最高位の数字の位
から数えたものとする。また、この丸め方は、1段階に
行わなければならない。例えば、5.346をこの方法
で有効数字2桁に丸めれば、5.3となる。これを2段
階に分けてしまうと1段階目で5.35、2段階目で
5.4となってしまう。
The significant digits are counted from the highest non-zero digit. This rounding must be performed in one step. For example, if 5.346 is rounded to two significant figures by this method, it becomes 5.3. If this is divided into two stages, it will be 5.35 in the first stage and 5.4 in the second stage.

【0012】処理手順としては、まず、(n+1)桁目
の数字が6以上かを判別し(ステップS702)、6以
上であればn桁目を1だけ増し、(n+1)桁目以降を
切り捨てる(ステップS706)。例えば、これに従っ
て13.41を有効数字3桁に丸めるのであれば、1
3.5とする。
As a processing procedure, first, it is determined whether the number in the (n + 1) th digit is 6 or more (step S702). If it is 6 or more, the nth digit is incremented by 1 and the (n + 1) th and subsequent digits are discarded. (Step S706). For example, if accordingly 13.4 6 1 than rounded to three significant digits, 1
3.5.

【0013】次に、(n+1)桁目の数字が4以下であ
るかを判別し(ステップS703)、4以下である場合
にはn+1桁目以降を切り捨てる(ステップS70
7)。例えば、12.89を有効数字3桁に丸めるの
であれば、12.8とする。
Next, it is determined whether or not the number in the (n + 1) th digit is 4 or less (step S703), and if it is 4 or less, the digits after the (n + 1) th digit are discarded (step S70).
7). For example, if the rounding 12.8 4 9 to three significant figures, and 12.8.

【0014】そして、n+1桁目が6以上でも4以下で
もない場合、即ちn+1桁目が5である場合には、n+
2桁目以降が全て0であるのか否かを判別し(ステップ
S704)、n+2桁目以降に0以外の数があれば、n
桁目を1だけ増し、n+1桁目以降を切り捨てる(ステ
ップS706)。例えば、これに従って13.451
有効数字3桁に丸めるのであれば、13.5とする。
If the (n + 1) th digit is neither 6 or more, nor 4 or less, that is, if the (n + 1) th digit is 5, n +
It is determined whether or not all the digits after the second digit are 0 (step S704).
The digit is increased by one, and the digits after the (n + 1) th digit are discarded (step S706). For example, if accordingly the rounding 13.4 51 three significant figures, and 13.5.

【0015】一方、n+2桁目以降が全て0である場合
には、n桁目が偶数であるのか奇数であるのかを判別す
る(ステップS705)。その結果、n桁目が偶数であ
る場合には、n+1桁目以降を切り捨てる(ステップS
707)。例えば、11.450を有効数字3桁に丸め
るのであれば、11.4とする。逆に、n桁目が奇数で
ある場合には、n桁目を1だけ増し、n+1桁目以降を
切り捨てる(ステップS706)。例えば、12.75
を有効数字3桁に丸めるのであれば、12.8とす
る。
On the other hand, if all the digits after the (n + 2) th digit are 0, it is determined whether the nth digit is an even number or an odd number (step S705). As a result, if the n-th digit is an even number, the digits after the (n + 1) -th digit are truncated (step S).
707). For example, 11. If 450 is rounded to three significant figures, it is 11.4. Conversely, if the n-th digit is an odd number, the n-th digit is incremented by 1 and the digits after the (n + 1) -th digit are discarded (step S706). For example, 12. 75
If 0 is rounded to three significant digits, it is 12.8.

【0016】しかしながら、従来の四捨五入関数で行わ
れていた条件分岐処理のように、判別に必要な数値を各
桁毎に取り出して、1つの数値として扱うと、図7のス
テップS704の条件分岐処理で、図8に示されている
ように、多数の条件分岐処理(ステップS804からス
テップS807)が必要となる。
However, if a numerical value required for discrimination is extracted for each digit and treated as one numerical value as in the conditional branching process performed by the conventional rounding function, the conditional branching process in step S704 in FIG. Therefore, as shown in FIG. 8, a number of conditional branch processes (steps S804 to S807) are required.

【0017】この部分は、n+1桁目が5であり、それ
以下の桁が0000000・・・であることを判別する
ものであが、各桁毎に必要な数値を取り出して、1つの
数値として扱うような処理手順では、全ての桁を判断し
なければならないことになる。
In this part, it is determined that the (n + 1) th digit is 5, and the lower digits are 0000000.... In such a processing procedure, all digits must be determined.

【0018】例えば、丸める桁より下位の桁が、500
00001のようになっている場合、JIS規格によれ
ば切り上げを行わなければならない。人間が目で判断す
る場合には、下位の桁に0以外の数字があることは直ち
にわかるものではあるが、コンピュータを用いる場合に
はその判定方法が問題となる。各桁毎に判別する従来の
処理では、n+2桁目が0かを判別し、n+3桁目が0
かを判別し、n+4桁目が0かを判別するというように
順次最下位の桁まで判別して、n+2桁目以降には0が
全くないのか、或いはいずれかの桁に0以外の数字があ
るのかを判別することになる。各桁を順次判別していく
ため、多数の分岐処理を経た後でなければ最終的な判別
はできない。
For example, if the digit lower than the digit to be rounded is 500
In the case of 00001, rounding up must be performed according to the JIS standard. When a human makes a judgment by eye, it is immediately apparent that there is a digit other than 0 in the lower digit, but when a computer is used, the method of judgment becomes a problem. In the conventional processing for discriminating each digit, it is discriminated whether the n + 2 digit is 0, and the n + 3 digit is 0.
And the n + 4 digit is determined to be 0, and so on, until the least significant digit is determined. If there is no 0 at all after the n + 2 digit, or if any digit other than 0 is found in any digit It is determined whether there is. Since each digit is sequentially discriminated, the final discrimination cannot be made until after many branching processes.

【0019】しかも、今日のコンピュータで計算可能な
桁数を考えると、この条件分岐処理の数は膨大なものと
なることが予想される。従って、従来の手順では、処理
対象の数値の桁数をコンピュータ自体の処理能力よりも
大幅に制限して、必要となる条件分岐処理の数を減らす
必要がある。このため、たとえソフト化したとしても、
コンピュータの計算能力よりもかなり低い水準で計算せ
ざるを得なくなり、処理可能な範囲が狭く、市販に耐え
得るものとはなり得ない。このように、JIS(Z84
01)に基づく数値丸めを行えるソフトは開発、実用化
されていないのが実情である。
Furthermore, considering the number of digits that can be calculated by today's computers, the number of conditional branch processing is expected to be enormous. Therefore, in the conventional procedure, it is necessary to limit the number of digits of the numerical value to be processed much more than the processing capability of the computer itself, and to reduce the number of necessary conditional branch processes. For this reason, even if it is softened,
The calculation has to be performed at a level considerably lower than the computing power of the computer, the processing range is narrow, and it cannot be commercially available. Thus, JIS (Z84)
Software that can perform numerical rounding based on 01) has not been developed or put into practical use.

【0020】本発明は、JIS規格(Z8401)に従
って数値を丸めることができる端数処理ソフトを提供す
ることを第2の目的とするものである。
A second object of the present invention is to provide fraction processing software capable of rounding a numerical value according to JIS standard (Z8401).

【0021】[0021]

【課題を解決するための手段】請求項1に係る端数処理
装置は、端数処理前数値xと有効桁数nとを入力する入
力手段と、入力された有効桁数nを記憶するn記憶手段
と、前記入力手段によって入力された数値xをA×10
aの形式(Aが最下位桁に0を含まず、また0以外の数
が小数点以下に存しないように、元の数値を10のべき
数10aとの積で表す)で表現した場合の整数Aと指数
aとを算出する整数部指数部演算手段と、整数部指数部
演算手段によって算出された指数aを記憶する指数部記
憶手段と、整数部指数部演算手段によって算出された整
数Aを記憶する整数部記憶手段と、整数部記憶手段に記
憶された整数Aとn記憶手段に記憶された有効数字nと
を用いて整数Aを有効数字n桁で端数処理して整数Bを
算出する端数処理手段と、端数処理手段によって算出さ
れた整数Bと指数部記憶手段に記憶された指数aとを用
いてB×10aを計算する桁復元手段と、桁復元手段に
よる演算結果を有効数字n桁で出力する出力手段とを備
えている。
According to a first aspect of the present invention, there is provided a fraction processing apparatus comprising: an input means for inputting a value x before a fraction processing and a significant digit number n; and an n storage means for storing the entered significant digit number n. And the numerical value x input by the input means is A × 10
When a is expressed in the form of a (where A does not include 0 in the least significant digit and the original numerical value is multiplied by a power of 10 a such that a number other than 0 does not exist below the decimal point) Integer part exponent calculating means for calculating the integer A and exponent a; exponent part storing means for storing the exponent a calculated by the integer part exponent calculating means; and integer A calculated by the integer part exponent calculating means And an integer A stored in the integer part storage means and a significant figure n stored in the n storage means, and the integer A is rounded to n significant figures to calculate an integer B. Fraction processing means, a digit restoring means for calculating B × 10 a using the integer B calculated by the fraction processing means and the exponent a stored in the exponent part storage means, and an operation result by the digit restoring means is effective. Output means for outputting an n-digit number.

【0022】請求項2の発明に係る端数処理装置は、請
求項1記載の端数処理装置において、前記端数処理手段
が、前記整数部記憶手段に記憶された整数Aのn+1桁
目以降の数値を1つの数値として取り出し、該数値が5
に等しいか否かを判別する5判別手段と、この5判別手
段によりn+1桁目以降を1つとした数値が5に等しい
と判別された場合に、整数Aのn桁目を2で割り、剰余
が0であるか否かを判別する偶数奇数判別手段と、前記
5判別手段によりn+1桁目以降を1つとした数値が5
に等しくはないと判別された場合に、整数Aのn+1桁
目の数値が5以上であるか否かを判別する四捨五入判別
手段と、前記偶数奇数判別手段により剰余が0であると
判別された場合、及び前記四捨五入判別手段によりn+
1桁目が5以上ではないと判別された場合に、n+1桁
目以降の数値を切り捨てて整数Bを算出する切り捨て処
理手段と、前記偶数奇数判別手段により剰余が0でない
と判別された場合、及び前記四捨五入判別手段によりn
+1桁目が5以上であると判別された場合に、n桁目を
1だけ増しn+1桁目以降の数値を切り捨てて整数Bを
算出する切り上げ処理手段とを備えていることを特徴と
するものである。
According to a second aspect of the present invention, in the fraction processing device according to the first aspect, the fraction processing means converts the numerical value of the integer A from the (n + 1) th digit after the integer A stored in the integer part storage means. Take out as one numerical value, the numerical value is 5
And a fifth determining means for determining whether or not the integer A is equal to 5. If the five determining means determines that the value obtained by adding one after the (n + 1) th digit is equal to 5, the nth digit of the integer A is divided by 2, and the remainder is calculated. Is an odd number discriminating means for discriminating whether or not is 0, and a value obtained by the fifth discriminating means from the (n + 1) th digit to one is 5
When it is determined that the remainder is not equal to, the rounding-off determination means for determining whether or not the value of the (n + 1) th digit of the integer A is 5 or more, and the remainder is determined to be 0 by the even-odd number determination means. Case, and n +
When it is determined that the first digit is not greater than or equal to 5, when the remainder is not 0 by the truncation processing means for calculating the integer B by truncating the value after the (n + 1) th digit, And n is determined by the
And a round-up processing means for calculating an integer B by incrementing the n-th digit by 1 and discarding the value after the (n + 1) -th digit when it is determined that the + 1st digit is 5 or more. It is.

【0023】請求項3に記載の端数処理装置は、整数A
を有効桁数nで端数処理して整数Bを算出する端数処理
装置であって、整数Aのn+1桁目以降の数値を1つの
数値として取り出し、該数値が5に等しいか否かを判別
する5判別手段と、前記5判別手段によりn+1桁目以
降を1つとした数値が5に等しいと判別された場合に、
整数Aのn桁目を2で割り、剰余が0であるか否かを判
別する偶数奇数判別手段と、前記5判別手段によりn+
1桁目以降を1つとした数値が5に等しくはないと判別
された場合に、整数Aのn+1桁目の数値が5以上であ
るか否かを判別する四捨五入判別手段と、前記偶数奇数
判別手段により剰余が0であると判別された場合、及び
前記四捨五入判別手段によりn+1桁目が5以上ではな
いと判別された場合に、n+1桁目以降の数値を切り捨
てて整数Bを算出する切り捨て処理手段と、前記偶数奇
数判別手段により剰余が0でないと判別された場合、及
び前記四捨五入判別手段によりn+1桁目が5以上であ
ると判別された場合に、n桁目を1だけ増しn+1桁目
以降の数値を切り捨てて整数Bを算出する切り上げ処理
手段とを備えている。
[0023] The fraction processing device according to claim 3 is an integer A
Processing to calculate the integer B by performing a rounding on the number of significant digits n
A device for converting the value after the (n + 1) th digit of the integer A into one
Take out as a number and determine if the number is equal to 5
5 discriminating means, and the (n + 1) th digit or more by the 5 discriminating means.
If it is determined that the numerical value of one descending is equal to 5,
Divide the n-th digit of the integer A by 2 to determine whether the remainder is 0 or not.
The different even / odd discriminating means and n +
Determines that the value after the first digit is 1 is not equal to 5
When the value of the (n + 1) th digit of the integer A is 5 or more,
Rounding determining means for determining whether or not
When the determination unit determines that the remainder is 0, and
The n + 1 digit is not more than 5 by the rounding discrimination means.
If it is determined that the
Truncation processing means for calculating an integer B
If the number discriminating means determines that the remainder is not 0,
And the n + 1 digit is 5 or more by the rounding discrimination means.
When it is determined that the n-th digit is increased by one and the (n + 1) -th digit
Round-up processing to calculate integer B by truncating subsequent values
Means.

【0024】請求項4に記載の端数処理装置は、整数A
を上位からn桁目で端数処理して整数Bを算出する端数
処理装置であって、整数Aのn+1桁目以降の数値を1
つの数値として取り出し、該数値が5に等しいか否かを
判別する5判別手段と、前記5判別手段によりn+1桁
目以降を1つとした数値が5に等しいと判別された場合
に、整数Aのn桁目を2で割り、剰余が0であるか否か
を判別する偶数奇数判別手段と、前記5判別手段により
n+1桁目以降を1つとした数値が5に等しくはないと
判別された場合に、整数Aのn+1桁目の数値が5以上
であるか否かを判別する四捨五入判別手段と、前記偶数
奇数判別手段により剰余が0であると判別された場合、
及び前記四捨五入判別手段によりn+1桁目が5以上で
はないと判別された場合に、n+1桁目以降の数値を切
り捨てて整数Bを算出する切り捨て処理手段と、前記偶
数奇数判別手段により剰余が0でないと判別された場
合、及び前記四捨五入判別手段によりn+1桁目が5以
上であると判別された場合に、n桁目を1だけ増しn+
1桁目以降の数値を切り捨てて整数Bを算出する切り上
げ処理手段とを備えている。
[0024] The fraction processing device according to claim 4, wherein the integer A
To calculate the integer B by performing a rounding on the nth digit from the top
A processing device, wherein the numerical value after the (n + 1) th digit of the integer A is 1
And extract whether it is equal to 5
5 discriminating means for discriminating, and n + 1 digits by the 5 discriminating means
When it is determined that the number after the first is equal to 5
Divides the n-th digit of the integer A by 2, and determines whether the remainder is 0
And odd number discriminating means for discriminating
If the number after the (n + 1) th digit is 1 is not equal to 5,
If it is determined, the value of the (n + 1) th digit of the integer A is 5 or more
A round-off determining means for determining whether or not
If the odd number discriminating means determines that the remainder is 0,
And the n + 1 digit is 5 or more by the rounding discrimination means.
If it is determined that there is no
A truncation processing means for calculating an integer B by discarding,
If the odd number discriminating means determines that the remainder is not 0,
And the (n + 1) th digit is 5 or more by the rounding discrimination means.
If it is determined to be above, the nth digit is increased by 1 and n +
Rounding up to calculate integer B by truncating the first and subsequent digits
And processing means.

【0025】[0025]

【発明の実施の形態】以下、添付図面を参照しつつ本発
明の好適な実施形態について説明する。図1は本発明に
かかる端数処理装置の一実施形態を示すブロック図であ
る。装置は、入力装置1、記憶装置3、ROM5、CP
U6、記憶装置7、表示装置12、印字装置13を備え
ている。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a block diagram showing an embodiment of a fraction processing device according to the present invention. The devices are an input device 1, a storage device 3, a ROM 5, a CP
U6, a storage device 7, a display device 12, and a printing device 13 are provided.

【0026】入力装置1は有効数字を入力するためのテ
ンキー2を備えており、入力された有効数字をCPU6
に送る。記憶装置3は、計算・計測結果記憶エリア4を
備えており、該計算・計測結果記憶エリア4には、実験
等の測定結果や計算結果等の数値データが予め格納され
ている。計算・測定結果記憶エリア4に格納されている
数値データは、CPU6に送られて端数処理される。
The input device 1 is provided with a numeric keypad 2 for inputting significant figures.
Send to The storage device 3 has a calculation / measurement result storage area 4 in which numerical data such as measurement results of experiments and the like and calculation results are stored in advance. The numerical data stored in the calculation / measurement result storage area 4 is sent to the CPU 6 and subjected to fraction processing.

【0027】ROM5には、端数処理を行うためのプロ
グラムが格納されており、CPU6はこのプログラムに
従って演算、読み出し、書き込み等の処理を行う。この
実施形態ではプログラムはROM5に格納されている
が、ROMの代わりにRAMを使用して、フロッピーデ
ィスク、ハードディスク、光磁気ディスク等の記録媒体
に記録されたプログラムを、RAMに読み込むようにす
ることもできる。
The ROM 5 stores a program for performing fraction processing, and the CPU 6 performs operations such as calculation, reading, and writing according to the program. In this embodiment, the program is stored in the ROM 5. However, the RAM is used instead of the ROM, and the program recorded on a recording medium such as a floppy disk, a hard disk, or a magneto-optical disk is read into the RAM. Can also.

【0028】記憶装置7は、丸め前数値記憶エリア8、
整数部記憶エリア9、指数部記憶エリア10、丸め後数
値記憶エリア11を備えており、CPU6が処理を行う
ときには、これらの記憶領域を必要に応じて使用するこ
とになる。丸め前数値記憶エリア8には、記憶装置3の
計算・計測結果記憶エリア4に格納されている数値デー
タの内、処理の対象となる数値が格納される。整数部記
憶エリア9には、丸め前数値記憶エリア8に格納されて
いる数値を指数で表現した場合の整数部の数値が格納さ
れ、指数部記憶エリア10には、指数が格納される。丸
め後数値記憶エリア11には、端数処理を行った後の数
値が格納され、この数値を読み出してCRT等の表示装
置12に処理結果を表示することができ、またレーザー
プリンタ等の印字装置13に出力することもできる。
The storage device 7 has a numerical value storage area 8 before rounding,
The CPU 6 includes an integer part storage area 9, an exponent part storage area 10, and a rounded numerical value storage area 11. When the CPU 6 performs processing, these storage areas are used as needed. The pre-rounding numerical value storage area 8 stores numerical values to be processed among the numerical data stored in the calculation / measurement result storage area 4 of the storage device 3. The integer part storage area 9 stores a numerical value of the integer part when the numerical value stored in the pre-rounding numerical value storage area 8 is represented by an exponent, and the exponent part storage area 10 stores an exponent. The rounded numerical value storage area 11 stores the numerical value after performing the fraction processing, and can read out the numerical value and display the processing result on a display device 12 such as a CRT, and a printing device 13 such as a laser printer. Can also be output.

【0029】本発明により有効数字n桁で切り捨て処理
を行う場合の処理手順を図2に示す。まず、処理する数
値x及び有効桁数nが入力される(ステップS20
1)。処理する数値は計算・計測結果記憶エリア4に格
納されているデータの1つを取り込めばよいが、オペレ
ータが直接入力するようにしてもよい。入力された処理
前数値xは、丸め前数値記憶エリア8に格納される。
FIG. 2 shows a processing procedure in the case where the truncation process is performed with n significant digits according to the present invention. First, the numerical value x to be processed and the number of significant digits n are input (step S20).
1). The numerical value to be processed may be one of the data stored in the calculation / measurement result storage area 4, but may be directly input by the operator. The input numerical value x before processing is stored in the numerical value storage area 8 before rounding.

【0030】次に、処理前数値xを整数部Aと指数部に
分けて、x=A×10a(Aが最下位桁に0を含まず、
また0以外の数が小数点以下に存しないように、元の数
値を10のべき数10aとの積で表す)とした場合のA
及びaを算出する(ステップS202)。例えば、xが
0.00021であれば、21×10-5であるから、A
は21、aは−5となり、xが320100であれば、
3201×102であるから、Aは3201、aは2と
なる。
Next, the numerical value x before processing is divided into an integer part A and an exponent part, and x = A × 10 a (A does not include 0 in the least significant digit,
In addition, the original numerical value is represented by a product of a power of 10 and a so that a number other than 0 does not exist below the decimal point.
And a are calculated (step S202). For example, if x is 0.00021, then it is 21 × 10 -5 , so A
Is 21 and a is -5, and if x is 320100,
Since it is 3201 × 10 2 , A is 3201 and a is 2.

【0031】このようにして算出された整数A及び指数
aは、記憶装置7に格納される(ステップS203、S
204)。指数aは指数部記憶エリア10に格納され、
整数Aは整数部記憶エリア9に各桁毎に格納される。例
えば、整数部Aが3201である場合には、3、2、
0、1と各桁の数値がそれぞれ別々に格納される。ステ
ップS205で整数Aの各桁の内、最高位の桁から数え
てn+1桁目以降の各桁の数値を0に書き換える。この
段階では、切り捨て処理後の数値は、各桁毎に整数部記
憶エリア9に格納されているため、ステップS206
で、各桁毎に記憶された値を1つの数値に変換する。例
えば、3、2、0、0と各桁毎に記憶された数値は、3
200という数字に変換される。
The integer A and index a thus calculated are stored in the storage device 7 (steps S203, S203).
204). The exponent a is stored in the exponent part storage area 10,
The integer A is stored in the integer part storage area 9 for each digit. For example, when the integer part A is 3201, 3, 2,
0, 1 and the numerical value of each digit are stored separately. In step S205, the numerical value of each digit after the (n + 1) th digit counted from the highest digit of each digit of the integer A is rewritten to 0. At this stage, since the numerical value after the truncation processing is stored in the integer part storage area 9 for each digit, step S206
Then, the value stored for each digit is converted into one numerical value. For example, the numerical value stored for each digit as 3, 2, 0, 0 is 3
It is converted to the number 200.

【0032】ステップS204からステップS206は
切り捨て処理を行う部分であり、図に示されている処理
以外にも種々の慣用処理を用いて切り捨て処理を行うこ
とができる。
Steps S204 to S206 are portions for performing the truncation processing, and the truncation processing can be performed using various conventional processing in addition to the processing shown in the figure.

【0033】最後に、指数部記憶エリア10に格納され
ている指数aを読み出して(ステップS207)、切り
捨て処理を行った後の整数部と指数部10aとのかけ算
を実行することにより、切り捨て結果を算出する(ステ
ップS208)。算出された切り捨て結果は、丸め後数
値記憶エリア11に格納されると共に必要に応じて表示
装置12、印字装置13、外部記憶媒体等に出力される
(ステップS209)。
[0033] Finally, by reading the index a stored in the exponent part storage area 10 (step S207), by performing the multiplication between the integer part and exponent part 10 a after the truncation, truncation The result is calculated (step S208). The calculated truncation result is stored in the numerical value storage area 11 after rounding and is output to the display device 12, the printing device 13, an external storage medium or the like as needed (step S209).

【0034】ここで、図2に示されるフローチャートに
従って、0.205を有効数字2桁で切り捨て処理して
みる。まず、ステップS201では、数値xとして0.
205が入力され、有効桁数nとして2が入力される。
ステップS202では、0.205が整数部と指数部と
に分離されて、205×10-3となる。
Here, 0.205 is truncated to two significant figures according to the flowchart shown in FIG. First, in step S201, 0.
205 is input, and 2 is input as the number of significant digits n.
In step S202, 0.205 is separated into an integer part and an exponent part, and becomes 205 × 10 −3 .

【0035】ステップS203では、指数aである−3
が指数部記憶エリア10に格納される。ステップS20
4では整数部Aである205が2、0、5に分けられて
順に整数部記憶エリア9に格納される。ステップS20
5ではn+1桁目以降、即ち3桁目以降の桁に対応する
数字が0に書き換えられる。この場合、最後の5が0に
書き換えられる。ステップS206では2、0、0とな
った整数部記憶エリア9の数字の列びが200という数
値に変換される。そして、ステップS207で指数部記
憶エリア10に格納されていた−3という数値が取り出
され、ステップS208で200×10-3が計算され
て、0.20という切り捨て結果が得られる。
In step S203, the index a is -3.
Is stored in the exponent part storage area 10. Step S20
In 4, the integer part A 205 is divided into 2, 0, and 5 and stored in the integer part storage area 9 in order. Step S20
In 5, the number corresponding to the (n + 1) th digit or more, that is, the digit after the third digit, is rewritten to 0. In this case, the last 5 is rewritten to 0. In step S206, the sequence of numbers in the integer part storage area 9 that has become 2, 0, 0 is converted to a numerical value of 200. Then, in step S207, a numerical value of -3 stored in the exponent part storage area 10 is extracted, and in step S208, 200 × 10 -3 is calculated, and a rounded result of 0.20 is obtained.

【0036】図3は、本発明に従って、有効数字で桁を
指定して切り上げ処理を行う場合の処理手順を示すもの
である。切り捨て処理(図2)の場合と同様にして、処
理する数値x及び有効桁数nを入力し(ステップS30
1)、数値xを整数部Aと指数部10aとに分離し(ス
テップS302)、指数aを指数部記憶エリア10に格
納する(ステップS303)。
FIG. 3 shows a processing procedure in the case where a round-up process is performed by designating a digit with a significant digit according to the present invention. As in the case of the truncation process (FIG. 2), a numerical value x to be processed and the number of significant digits n are input (step S30).
1), separating the numerical value x to an integer part A and the exponent part 10 a (step S302), and stores the index a in the exponent part storage area 10 (step S303).

【0037】ステップS304からステップS311ま
では、整数部Aについての切り上げ処理の1例であり、
図に示されている処理方法以外にも種々の慣用手段を用
いることができる。図3に示されている切り上げ処理で
は、まず整数部Aを整数部記憶エリア9に各桁毎に格納
する(ステップS304)。そして、各桁毎に格納され
ている整数部Aのうち、n+1桁目以降に相当する各桁
の数のみを元に戻して1つの数値に変換する(ステップ
S305)。この数値が、1以上であるかを判別し(ス
テップS306)、1以上でなければ切り上げ処理は行
わずにステップS311に進む。この数値、即ち、n+
1桁目以降を1つの数に戻した値が1以上である場合に
は、ステップS307からS310の書き換え処理が行
われる。
Steps S304 to S311 are an example of rounding-up processing for the integer part A.
Various conventional means other than the processing method shown in the figure can be used. In the round-up processing shown in FIG. 3, first, the integer part A is stored in the integer part storage area 9 for each digit (step S304). Then, of the integer part A stored for each digit, only the number of each digit corresponding to the (n + 1) th digit and thereafter is restored to the original value and converted into one numerical value (step S305). It is determined whether this numerical value is 1 or more (step S306). If not, the process proceeds to step S311 without performing the round-up process. This numerical value, that is, n +
When the value obtained by returning the first and subsequent digits to one number is 1 or more, the rewriting process from step S307 to S310 is performed.

【0038】ステップS307では、最高位の桁からn
桁目までを元に戻して1つの数値に変換する。そして、
このn桁目までの数値に1を加え(ステップS30
8)、再び各桁毎に整数部記憶エリア9に格納する(ス
テップS310)。次に、各桁毎に格納されている整数
部Aの各桁の内、n+1桁目以降に対応する各数値を0
に書き換える(ステップS310)。
In step S307, n is set from the highest digit to n.
Convert up to the first digit and convert it to a single number. And
One is added to the numerical value up to the n-th digit (step S30).
8) Store again in the integer part storage area 9 for each digit (step S310). Next, of the respective digits of the integer part A stored for each digit, each numerical value corresponding to the (n + 1) th digit and thereafter is set to 0.
(Step S310).

【0039】このような処理を経た後、整数部記憶エリ
ア9の各桁が取り出されて1つの数値に戻される(ステ
ップS311)。ステップS312では、指数部記憶エ
リア10に格納されている指数aが取り出され、ステッ
プS313では、切り上げ処理された整数部と10a
の掛け算が実行される。そして、演算結果は図2の場合
と同様にして出力される(ステップS314)。
After such processing, each digit of the integer part storage area 9 is taken out and returned to one numerical value (step S311). At step S312, the index a is retrieved which is stored in the exponent part storage area 10, in step S313, the multiplication of the round-up process integer part and 10 a is performed. Then, the calculation result is output in the same manner as in the case of FIG. 2 (step S314).

【0040】ここで、本発明にかかる処理手順に従っ
て、1270400を有効数字2桁で切り上げ処理して
みる。まず、ステップS301で数値xとして1270
400、有効数字nとして2が入力される。12704
00は、12704×102であるから、整数部Aは1
2704、指数aは2となる。従って、指数部記憶エリ
ア10には、2が格納され(ステップS303)、整数
部記憶エリア9には、1、2、7、0、4の各数字が順
に格納される(ステップS304)。
Here, 1270400 is rounded up to two significant figures according to the processing procedure according to the present invention. First, in step S301, 1270 is set as a numerical value x.
400, 2 is input as a significant figure n. 12704
00 is 12704 × 10 2 , so the integer part A is 1
2704, the index a becomes 2. Therefore, 2 is stored in the exponent part storage area 10 (step S303), and the numbers 1, 2, 7, 0, and 4 are sequentially stored in the integer part storage area 9 (step S304).

【0041】ステップS305では、n+1桁目以降、
即ち3桁目以降の数字7、4、0が取り出されて1つの
数値740に変換される。この数値は1以上であるから
ステップS307へ進むこととなる(ステップS30
6)。ステップS307では、整数部Aのn桁目までの
数値、即ち2桁目までの数値1、2が取り出されて1つ
の数値12に変換される。ステップS308で、この数
値に1が加えられて13となる。
In step S305, after the (n + 1) th digit,
That is, the numbers 7, 4, and 0 after the third digit are extracted and converted into one numerical value 740. Since this numerical value is 1 or more, the process proceeds to step S307 (step S30).
6). In step S307, numerical values up to the n-th digit of the integer part A, that is, numerical values 1 and 2 up to the second digit are extracted and converted into one numerical value 12. In step S308, 1 is added to this numerical value to become 13.

【0042】そして、再び整数部記憶エリア9に各桁毎
に格納される(ステップS309)。このような処理を
行った後、整数部記憶エリア9には1、3、7、4、0
の各数字が順に格納されていることになる。次に、n+
1桁目以降、即ち3桁目以降に対応する数値7、4、0
がそれぞれ0に書き換えられ(ステップS310)、整
数部記憶エリア9の数値は1、3、0、0、0となる。
これを1つの数値に戻せば13000となる(ステップ
S311)。
Then, it is stored again for each digit in the integer part storage area 9 (step S309). After such processing, 1, 3, 7, 4, 0 is stored in the integer part storage area 9.
Are stored in order. Then, n +
Numerical values 7, 4, 0 corresponding to the first and subsequent digits, that is, the third and subsequent digits
Are respectively rewritten to 0 (step S310), and the numerical values of the integer part storage area 9 are 1, 3, 0, 0, 0.
If this is returned to one numerical value, it becomes 13000 (step S311).

【0043】最後に、指数部記憶エリア10から2が取
り出され(ステップS312)、13000×102
掛け算が実行され(ステップS313)、演算結果13
00000が出力される(ステップS314)。
Finally, 2 is extracted from the exponent part storage area 10 (step S312), and multiplication of 13000 × 10 2 is executed (step S313), and the operation result 13
00000 is output (step S314).

【0044】図4は、本発明に従って、有効桁数を指定
して四捨五入を行う場合の処理手順を示すものである。
有効桁数で指定できる四捨五入は、図2に示されている
切り捨て手順と、図3に示されている切り上げ手順を組
み合わせることにより実行することができる。
FIG. 4 shows a processing procedure for rounding off by designating the number of significant digits according to the present invention.
Rounding that can be specified by the number of significant digits can be executed by combining the round-down procedure shown in FIG. 2 and the round-up procedure shown in FIG.

【0045】ステップS401からステップS404で
は、図2及び図3の場合と同様に、数値xを整数部Aと
指数部10aとに分け、それぞれを各記憶エリア9及び
10に格納している。そして、ステップS405でn+
1桁目の数値を整数部記憶エリア9から取り出して5以
上であるか否かを判断している。n+1桁目の数値が5
以上であると判断された場合には、切り上げ処理が行わ
れ(ステップS406)、5以上ではないと判断された
場合には、切り捨て処理が行われる(ステップS40
7)。この切り捨て処理及び切り上げ処理は、図2及び
図3に示されているもの(図2ではステップS204か
らS206、図3ではステップS304からS311)
の他、慣用されている種々の手段を適用することができ
る。
In steps S401 to S404, the numerical value x is divided into an integer part A and an exponent part 10a and stored in the respective storage areas 9 and 10 as in the case of FIGS. Then, at step S405, n +
The numerical value of the first digit is taken out from the integer part storage area 9 and it is determined whether or not it is 5 or more. The number in the (n + 1) th digit is 5.
When it is determined that the above is the case, the round-up processing is performed (Step S406), and when it is determined that the number is not more than 5, the round-down processing is performed (Step S40).
7). The round-down process and the round-up process are shown in FIGS. 2 and 3 (steps S204 to S206 in FIG. 2, steps S304 to S311 in FIG. 3).
In addition, various commonly used means can be applied.

【0046】そして、図2及び図3の場合と同様にして
指数部10aを掛ける演算が行われて、演算結果が出力
される(ステップS408からS410)。
[0046] In the case of FIGS. 2 and 3 and are made operational to multiply the exponent 10 a in the same manner, the operation result is outputted (steps S408 S410).

【0047】図5は、JIS規格に従って、有効数字n
桁で数値丸めを行う場合の処理手順を示すフローチャー
トである。まず丸め前数値xと有効桁数nとを入力する
(ステップS501)。丸め前数値xは丸め前数値記憶
エリア8に格納される。次に、丸め前数値xを整数部A
と指数部10aとに分けるため、A×10aを算出し(ス
テップS502)、指数aを指数部記憶エリア10に格
納し(ステップS503)、整数部Aを各桁毎に整数部
記憶エリア9に格納する(ステップS504)。整数部
Aの内、n+1桁目以降は再び1つの数値に戻される
(ステップS505)。即ち、このようにすることによ
り、最高位の桁から第n桁目までと、第n+1桁目以降
とに分けられ、n+1桁目以降が1つの数値として取り
出される。
FIG. 5 shows significant figures n according to the JIS standard.
It is a flowchart which shows the processing procedure at the time of performing numerical value rounding by a digit. First, the numerical value x before rounding and the number of significant digits n are input (step S501). The pre-rounding value x is stored in the pre-rounding value storage area 8. Next, the value x before rounding is converted to an integer part A.
A × 10 a is calculated to divide the data into the exponent part 10 a (step S 502), the exponent a is stored in the exponent part storage area 10 (step S 503), and the integer part A is stored for each digit in the integer part storage area. 9 (step S504). In the integer part A, the value after the (n + 1) th digit is returned to one numerical value again (step S505). That is, by doing in this way, it is divided into the highest digit to the n-th digit and the n + 1-th digit and thereafter, and the n + 1-th digit and thereafter are extracted as one numerical value.

【0048】そして、n+1桁目以降の数値を5で割る
演算が行われ、割り算の結果が1であるか否かが判別さ
れる(ステップS506)。このように、本発明では、
特に、丸め前数値xを整数部Aと指数部10aに分け、
更に整数部Aのうちn+1桁目以降を5で割るという操
作により、従来JIS規格による数値丸めを行う場合に
困難であるとされてきた判断、即ちn+1桁目が5であ
る場合に、n+2桁目以降が全て0であるか否かという
判断と実質的に同一の判断を行うことができるようにな
る。
Then, an operation of dividing the numerical value after the (n + 1) th digit by 5 is performed, and it is determined whether or not the result of the division is 1 (step S506). Thus, in the present invention,
In particular, divided rounding before numerical value x to the integer part A and the exponent 10 a,
Further, by performing an operation of dividing the (n + 1) th digit and subsequent digits of the integer part A by 5, it has been determined that it has been difficult to round the value according to the JIS standard in the past. That is, if the (n + 1) th digit is 5, the n + 2 digits It is possible to make substantially the same determination as whether or not all of the eyes are 0.

【0049】つまり、従来、n+1桁目以下の数値が丁
度5(数値を構成する桁において0以外の数が現れる最
下位の桁が5)に該当する場合が、最も問題となってい
たが、本発明では丸め前数値xを指数表現し、その整数
部をとっているので、このような場合は必ず整数部Aの
一の位が5となる。そして、n桁目が整数部Aの十の位
であるから、ステップS505の処理を経ると、n+1
桁目以降の数値として5が取り出されることになる。し
たがって、このようにして得られたn+1桁目以降の数
値を5で割って結果が1となるかを判別すれば、丸め前
数値xの最下位の桁が5で、且つこの桁がn+1桁目に
該当する場合を抜き出すことができる。
That is, conventionally, the case where the numerical value of the (n + 1) th digit or less corresponds to exactly 5 (the least significant digit where a number other than 0 appears in the digits constituting the numerical value is 5) has been the most problematic. In the present invention, the numerical value x before rounding is represented by an exponent and its integer part is taken. Therefore, in such a case, the first place of the integer part A is always 5. Since the n-th digit is the tens place of the integer part A, after the process of step S505, n + 1
5 will be extracted as the numerical value after the first digit. Therefore, if it is determined whether the result obtained by dividing the number obtained after the (n + 1) th digit by 5 is 1 or not, the least significant digit of the value x before rounding is 5 and this digit is n + 1 digits You can extract cases that correspond to your eyes.

【0050】例えば、0.0125を有効数字2桁でJ
IS規格による数値丸めを行う場合、この数値を整数部
Aと指数部10aとに分けると、125×10-4である
から、Aは125、aは−4となる。125をn桁目ま
で(この場合2桁目まで)とn+1桁目以降(この場合
3桁目)とに分けると12と5とに分離される。そし
て、n+1桁目以降である5を5で割ると演算結果は1
となる。
For example, 0.0125 is set to J in two significant figures.
When performing rounding numerical by IS standard, when dividing this number to an integer part A and the exponent 10 a, since it is 125 × 10 -4, A is 125, a becomes -4. If 125 is divided into the n-th digit (in this case, the second digit) and the (n + 1) -th digit (in this case, the third digit), it is separated into 12 and 5. Then, when the number 5 after the (n + 1) th digit is divided by 5, the calculation result is 1
Becomes

【0051】一方、0.0125001を有効数字2桁
でJIS規格による数値丸めを行う場合、この数値を整
数部Aと指数部10aとに分けると、125001×1
-7であるから、Aは125001、aは−7となる。
そして、125001を2桁目までと3桁目以降とに分
けると12と5001とに分離される。ところが、50
01を5で割っても演算結果は1でないため、この場合
は、通常の四捨五入を行えばよいことになる。
Meanwhile, when performing rounding numerical by JIS standard two significant figures to 0.0125001, Dividing this number to an integer part A and the exponent 10 a, 125001 × 1
Because it is 0 -7, A is 125001, a becomes -7.
Then, if 125001 is divided into the second and third digits and thereafter, it is separated into 12 and 5001. However, 50
Even if 01 is divided by 5, the operation result is not 1, so in this case, ordinary rounding may be performed.

【0052】ステップS506で、n+1桁目以降を5
で割った演算結果が1であると判別された場合には、各
桁毎に格納されている整数部Aのn桁目が読み出され、
偶数か奇数かが判定される。これは、n桁目の数値を2
で割ったときの剰余が0であるか否かにより判別される
(ステップS507)。
In step S506, the value after the (n + 1) th digit is set to 5
When it is determined that the calculation result obtained by dividing by 1 is 1, the n-th digit of the integer part A stored for each digit is read,
It is determined whether the number is even or odd. This means that the n-th digit is 2
It is determined based on whether the remainder when divided by is 0 (step S507).

【0053】ステップS507で剰余が0と判別された
場合、即ちn桁目の数値が偶数である場合には、図2に
示されている切り捨て処理(ステップS204からS2
06)又はその他の慣用されている切り捨て処理が行わ
れる(ステップS508)。ステップS507で剰余が
0でないと判別された場合、即ちn桁目の数値が奇数で
ある場合には、図3に示されている切り上げ処理(ステ
ップS304からS311)又はその他の慣用されてい
る切り上げ処理が行われる(ステップS509)。
If the remainder is determined to be 0 in step S507, that is, if the value of the n-th digit is an even number, the truncation processing shown in FIG.
06) or other commonly used truncation processing is performed (step S508). If it is determined in step S507 that the remainder is not 0, that is, if the n-th digit is an odd number, the round-up processing shown in FIG. 3 (steps S304 to S311) or another commonly used round-up The process is performed (Step S509).

【0054】ステップS506で、n+1桁目以降を5
で割った演算結果が1ではないと判別された場合には、
通常の四捨五入処理が行われる(ステップS510、S
509、S511)。ステップS506でn+1桁目が
5で、且つn+2桁目以降が0である場合が区別されて
いるので、これ以外の場合には通常の四捨五入処理を行
えば、JIS規格に対応することができる。まず、n+
1桁目の数値が読み出され、5以上であるか否かが判別
され(ステップS510)、n+1桁目の数値が5以上
である場合には、切り上げ処理が行われ(ステップS5
09)、n+1桁目の数値が5以上ではない場合、即ち
4以下の場合には、切り捨て処理が行われる(ステップ
S511)。
In step S506, the value after the (n + 1) th digit is set to 5
If it is determined that the calculation result obtained by dividing by is not 1,
Normal rounding processing is performed (steps S510 and S510).
509, S511). In step S506, the case where the (n + 1) th digit is 5 and the value after the (n + 2) th digit is 0 is distinguished. In other cases, if the normal rounding processing is performed, it is possible to comply with the JIS standard. First, n +
The numerical value of the first digit is read out, and it is determined whether or not the numerical value is 5 or more (step S510). If the numerical value of the (n + 1) th digit is 5 or more, a round-up process is performed (step S5).
09), if the value of the (n + 1) th digit is not 5 or more, that is, if it is 4 or less, a truncation process is performed (step S511).

【0055】このようにして整数部Aは端数処理され
る。そして、指数部記憶エリア10から指数aが取り出
され(ステップS512)、端数処理された整数部と指
数部10aとの掛け算が実行され(ステップS51
3)、その結果が記憶装置、表示装置、印字装置等に出
力される(ステップS514)。
In this way, the integer part A is rounded. Then, the retrieved indices a from the exponent part storage area 10 (step S512), multiplication of the rounded integer portion and exponent portion 10 a is executed (step S51
3) The result is output to a storage device, a display device, a printing device, etc. (step S514).

【0056】ここで、先に挙げた例(0.0125を有
効数字2桁、0.0125001を有効数字2桁)で図
5の処理を行った場合、入力から出力までに数値がどの
ように変化するかを示す。
Here, when the processing of FIG. 5 is performed in the above-described example (0.0125 is two significant figures, and 0.0125001 is two significant figures), how the numerical values from input to output are changed. Change.

【0057】まず、0.0125の場合は、125×1
-4であるから整数部Aは125、指数aは−4とな
る。従って、指数部記憶エリア10には−4が書き込ま
れる(ステップS503)。また、整数部Aについて
は、整数部記憶エリア9に各桁毎に、1、2、5の各数
値がそれぞれ書き込まれる(ステップS504)。
First, in the case of 0.0125, 125 × 1
Since it is 0 -4 , the integer part A is 125 and the index a is -4. Therefore, -4 is written in the exponent part storage area 10 (step S503). As for the integer part A, numerical values of 1, 2, and 5 are written in the integer part storage area 9 for each digit (step S504).

【0058】整数部Aの各桁の内、n+1桁目以降、即
ち3桁目以降を1つの数値に戻すと5が取り出されるこ
ととなる(ステップS505)。この5を5で割ると
(ステップS506)演算結果は1であるから、ステッ
プS507の処理が行われる。この場合、n桁目、即ち
2桁目の数値は2であるから、2で割ると剰余は0とな
る。従って、ステップS508に進みn+1桁目以降、
即ち3桁目以降の数値が切り捨てられる。すると処理結
果は120となる。
When the digits after the (n + 1) th digit, ie, the digits after the third digit, of the integer part A are returned to one numerical value, 5 is extracted (step S505). When this 5 is divided by 5 (step S506), the result of the operation is 1, so the process of step S507 is performed. In this case, the n-th digit, that is, the numerical value of the second digit is 2, and the remainder is 0 when divided by 2. Therefore, the process proceeds to step S508,
That is, the numerical values after the third digit are truncated. Then, the processing result becomes 120.

【0059】そして、指数部記憶エリア10に記憶され
ていた−4が読み出され(ステップS512)、120
×10-4という演算が実行され(ステップS513)、
演算結果として0.012が出力される(ステップS5
14)。
Then, -4 stored in the exponent part storage area 10 is read out (step S512), and 120 is read out.
An operation of × 10 -4 is executed (step S513),
0.012 is output as the calculation result (step S5)
14).

【0060】次に、0.0125001の場合は、12
5001×10-7であるから整数部Aは125001、
指数aは−7となる。従って、指数部記憶エリア10に
は−7が書き込まれる(ステップS503)。また、整
数部Aについては、整数部記憶エリア9に各桁毎に、
1、2、5、0、0、1の各数値がそれぞれ書き込まれ
る(ステップS504)。
Next, in the case of 0.0125001, 12
Since it is 5001 × 10 −7 , the integer part A is 125001,
The index a is -7. Therefore, -7 is written in the exponent part storage area 10 (step S503). For the integer part A, the integer part storage area 9 stores each digit,
Each numerical value of 1, 2, 5, 0, 0, 1 is written (step S504).

【0061】整数部Aの各桁の内、n+1桁目以降、即
ち3桁目以降を1つの数値に戻すと5001が取り出さ
れることとなる(ステップS505)。この5001を
5で割ると(ステップS506)演算結果は1ではない
から、ステップS510の処理が行われる。この場合、
n+1桁目、即ち3桁目の数値は5であるから、ステッ
プS509に進み切り上げ処理が行われる。すると処理
結果は130000となる。
When the digits after the (n + 1) th digit of the integer part A, ie, the digits after the third digit, are returned to one numerical value, 5001 is extracted (step S505). When this 5001 is divided by 5 (step S506), the result of the operation is not 1, so the process of step S510 is performed. in this case,
Since the value of the (n + 1) th digit, that is, the third digit, is 5, the flow advances to step S509 to perform a round-up process. Then, the processing result becomes 130,000.

【0062】そして、指数部記憶エリア10に記憶され
ていた−7が読み出され(ステップS512)、130
000×10-7という演算が実行され(ステップS51
3)、演算結果として0.013が出力される(ステッ
プS514)。
Then, -7 stored in the exponent part storage area 10 is read out (step S512), and 130 is read out.
The calculation of 000 × 10 −7 is executed (step S51).
3), 0.013 is output as the calculation result (step S514).

【0063】以上の説明では、桁数に関する誤解を避け
るため、ステップS506においてn+1桁目以降を1
つとした数値を5で割って、その演算結果が1であるか
否かを判別するようにしているが、直接n+1桁目以降
を1つとした数値が5であるか否かを判別してもよい。
In the above description, in order to avoid a misunderstanding regarding the number of digits, in step S506, the n + 1th and subsequent digits are set to 1
Is divided by 5 to determine whether the result of the operation is 1 or not. However, even if it is determined whether the numerical value obtained by subtracting 1 from the (n + 1) th digit is 5 or not. Good.

【0064】[0064]

【発明の効果】本発明にかかる処理手順は、処理前数値
を整数部と指数部とに分離しているので、端数処理を行
う桁を有効桁数で指定することができる。
According to the processing procedure of the present invention, since the numerical value before processing is separated into an integer part and an exponent part, the digit to be subjected to the fraction processing can be designated by the number of significant digits.

【0065】また、本発明にかかる処理手順でJIS規
格に定める数値丸めを行う場合には、処理前数値を整数
部と指数部とに分離した後、整数部のn+1桁目以降を
1つの数値として取り出し、この数値を5で割ってい
る。そのため、n+1桁目が5であり且つそれが各桁に
現れる0以外の数の最下位の桁にあるという場合に該当
するのか否かの判別を極めて少数の条件分岐処理で行う
ことができ、処理の高速化、及びプログラム作成の容易
化を図ることができる。
When the numerical value rounding specified by the JIS standard is performed in the processing procedure according to the present invention, the numerical value before processing is separated into an integer part and an exponent part, and the integer part after the (n + 1) th digit of the integer part is converted into one numerical value. And divide this number by five. Therefore, it can be determined by a very small number of conditional branch processes whether or not the case where the (n + 1) th digit is 5 and it is the least significant digit other than 0 that appears in each digit is applicable. The processing can be speeded up and the program creation can be facilitated.

【0066】さらに、本発明の処理手順は、コンピュー
タの演算処理できる桁数に関わりなく処理を行っている
ので、演算処理桁数の多いコンピュータにも適用するこ
とができる。このことは、コンピュータの処理能力に関
係なくソフト化できることを意味しており、本発明に係
る処理手順は、端数処理を行う様々な分野で適用するこ
とができる。本発明の応用分野としては、以下のものを
例示することができる。
Further, since the processing procedure of the present invention performs processing regardless of the number of digits that can be processed by a computer, it can be applied to a computer having a large number of digits to be processed. This means that software processing can be performed irrespective of the processing capability of the computer, and the processing procedure according to the present invention can be applied in various fields for performing fraction processing. The following are examples of application fields of the present invention.

【0067】1.表計算ソフトに関数として組み込む 表計算ソフトとしては、EXCEL、Lotus 1-2-3、三四郎等
を挙げることができる。
1. EXCEL, Lotus 1-2-3, Sanshiro, etc. can be cited as spreadsheet software as a function.

【0068】2.分析・計測・計算ソフトに組み込む このようなソフトには、窒素酸化物濃度を求めるソフ
ト、薬品の成分濃度を求めるソフト等が含まれる。
2. Incorporation into analysis / measurement / calculation software Such software includes software for determining the concentration of nitrogen oxides, software for determining the concentration of chemical components, and the like.

【0069】3.分析・計測機器に組み込む このような機器としては、電気化学分析機器、光化学分
析機器、電磁気分析機器、分離分析機器、熱分析機器等
を挙げることができる。
3. Examples of such a device to be incorporated into an analysis / measurement device include an electrochemical analysis device, a photochemical analysis device, an electromagnetic analysis device, a separation analysis device, and a thermal analysis device.

【0070】4.物理量・物性測定機に組み込む これには、物理量・物性測定器、温度・湿度・露点計、
測光・測色機器等が含まれる。
4. Incorporate in physical quantity / physical property measuring equipment This includes physical quantity / physical property measuring instrument, temperature / humidity / dew point meter,
Includes photometric and colorimetric devices.

【0071】5.特殊機器に組み込む 例えば、開発関連機器、バイオ関連機器、農林・水産・
畜産関連機器、気象観測機器、海洋観測機器等に組み込
むこともできる。
5. Incorporate in special equipment For example, development-related equipment, bio-related equipment, agriculture, forestry, fisheries,
It can also be incorporated into livestock related equipment, weather observation equipment, ocean observation equipment, and the like.

【0072】6.国際規格ISO9000やISO14
000の審査登録取得作業に組み込む例えば、試験、測
定及び監視用ハードウェアや試験、測定及び監視用ソフ
トウェア等に組み込むこともできる。
6. International standard ISO9000 and ISO14
For example, it can be incorporated into test, measurement and monitoring hardware, test, measurement and monitoring software, and the like.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明にかかる端数処理装置の一実施形態を示
すブロック図である。
FIG. 1 is a block diagram showing one embodiment of a fraction processing device according to the present invention.

【図2】有効数字n桁で切り捨て処理を行う場合の本発
明に係る処理手順の一例を示すフローチャートである。
FIG. 2 is a flowchart illustrating an example of a processing procedure according to the present invention when performing truncation processing with n significant figures.

【図3】有効数字n桁で切り上げ処理を行う場合の本発
明に係る処理手順の一例を示すフローチャートである。
FIG. 3 is a flowchart illustrating an example of a processing procedure according to the present invention when performing round-up processing with n significant digits.

【図4】有効数字n桁で四捨五入処理を行う場合の本発
明に係る処理手順の一例を示すフローチャートである。
FIG. 4 is a flowchart illustrating an example of a processing procedure according to the present invention when performing rounding processing with n significant figures.

【図5】JIS規格に従って、有効数字n桁で数値丸め
を行う場合の本発明に係る処理手順の一例を示すフロー
チャートである。
FIG. 5 is a flowchart illustrating an example of a processing procedure according to the present invention in a case where a numerical value is rounded to n significant figures according to the JIS standard.

【図6】四捨五入を行う場合の従来の処理手順を示すフ
ローチャートである。
FIG. 6 is a flowchart showing a conventional processing procedure when performing rounding.

【図7】JIS規格に定める数値丸めを従来の処理手順を
用いてコンピュータで処理する場合のフローチャートで
ある。
FIG. 7 is a flowchart in a case where numerical value rounding specified in JIS standard is processed by a computer using a conventional processing procedure.

【図8】JIS規格に定める数値丸めを従来の処理手順を
用いてコンピュータで処理する場合のフローチャートで
ある。
FIG. 8 is a flowchart in a case where a computer performs a rounding of a numerical value defined in the JIS standard by using a conventional processing procedure.

【符号の説明】[Explanation of symbols]

1 入力装置 2 テンキー 3 記憶装置 4 計算・計測結果記憶エリア 5 ROM 6 CPU 7 記憶装置 8 丸め前数値記憶エリア 9 整数部記憶エリア 10 指数部記憶エリア 11 丸め後数値記憶エリア 12 表示装置 13 印字装置 DESCRIPTION OF SYMBOLS 1 Input device 2 Numeric keypad 3 Storage device 4 Calculation / measurement result storage area 5 ROM 6 CPU 7 Storage device 8 Numerical value storage area before rounding 9 Integer part storage area 10 Exponential part storage area 11 Numerical value storage area after rounding 12 Display device 13 Printing device

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 端数処理前数値xと有効桁数nとを入力
する入力手段と、 入力された有効桁数nを記憶するn記憶手段と、 前記入力手段によって入力された数値xをA×10a
形式(Aが最下位桁に0を含まず、また0以外の数が小
数点以下に存しないように、元の数値を10のべき数1
aとの積で表す)で表現した場合の整数Aと指数aと
を算出する整数部指数部演算手段と、 整数部指数部演算手段によって算出された指数aを記憶
する指数部記憶手段と、 整数部指数部演算手段によって算出された整数Aを記憶
する整数部記憶手段と、 整数部記憶手段に記憶された整数Aとn記憶手段に記憶
された有効数字nとを用いて整数Aを有効数字n桁で端
数処理して整数Bを算出する端数処理手段と、 端数処理手段によって算出された整数Bと指数部記憶手
段に記憶された指数aとを用いてB×10aを計算する
桁復元手段と、 桁復元手段による演算結果を有効数字n桁で出力する出
力手段とを備えたことを特徴とする端数処理装置。
1. An input means for inputting a numerical value x before a rounding process and a significant digit n, an n storage means for storing the entered significant digit n, and a numerical value x input by the input means being A × 10a form (the original number is a power of 10 so that A does not contain 0 in the least significant digit and there are no non-zero digits after the decimal point)
Integer a exponent part calculating means for calculating an integer A and an exponent a when expressed by a product of 0 a ), and an exponent part storing means for storing the exponent a calculated by the integer part exponent calculating means. An integer part storage means for storing the integer A calculated by the integer part exponent operation means; and an integer A using the integer A stored in the integer part storage means and the significant figure n stored in the n storage means. A fraction processing means for calculating an integer B by performing a fraction processing on n significant figures; and calculating B × 10 a using the integer B calculated by the fraction processing means and the exponent a stored in the exponent part storage means. A fraction processing device comprising: digit restoring means; and output means for outputting the operation result of the digit restoring means as n significant digits.
【請求項2】 前記端数処理手段は、前記整数部記憶手
段に記憶された整数Aのn+1桁目以降の数値を1つの
数値として取り出し、該数値が5に等しいか否かを判別
する5判別手段と、 この5判別手段によりn+1桁目以降を1つとした数値
が5に等しいと判別された場合に、整数Aのn桁目を2
で割り、剰余が0であるか否かを判別する偶数奇数判別
手段と、 前記5判別手段によりn+1桁目以降を1つとした数値
が5に等しくはないと判別された場合に、整数Aのn+
1桁目の数値が5以上であるか否かを判別する四捨五入
判別手段と、 前記偶数奇数判別手段により剰余が0であると判別され
た場合、及び前記四捨五入判別手段によりn+1桁目が
5以上ではないと判別された場合に、n+1桁目以降の
数値を切り捨てて整数Bを算出する切り捨て処理手段
と、 前記偶数奇数判別手段により剰余が0でないと判別され
た場合、及び前記四捨五入判別手段によりn+1桁目が
5以上であると判別された場合に、n桁目を1だけ増し
n+1桁目以降の数値を切り捨てて整数Bを算出する切
り上げ処理手段とを備えていることを特徴とする請求項
1記載の端数処理装置。
2. The fraction processing unit extracts a numerical value after the (n + 1) th digit of the integer A stored in the integer part storing unit as one numerical value, and determines whether the numerical value is equal to 5. Means for determining whether the n-th digit of the integer A is 2
Even and odd number discriminating means for discriminating whether or not the remainder is 0; and when the number discriminating from the (n + 1) th digit to one is not equal to 5, n +
A rounding discriminating means for discriminating whether or not the first digit value is 5 or more; and a case where the remainder is discriminated to be 0 by the even / odd discriminating means, and a case where the n + 1th digit is 5 or more by the rounding discriminating means. If it is determined that the remainder is not zero, the truncation processing means for truncating the numerical value after the (n + 1) th digit to calculate the integer B, and the case where the remainder is determined to be not 0 by the even / odd determination means, and the rounding determination means a round-up processing means for calculating an integer B by incrementing the n-th digit by 1 and discarding a numerical value after the (n + 1) -th digit when it is determined that the (n + 1) -th digit is 5 or more. Item 4. The fraction processing device according to Item 1.
【請求項3】 整数Aを有効桁数nで端数処理して整数
Bを算出する端数処理装置であって、 整数Aのn+1桁目以降の数値を1つの数値として取り
出し、該数値が5に等しいか否かを判別する5判別手段
と、 前記5判別手段によりn+1桁目以降を1つとした数値
が5に等しいと判別された場合に、整数Aのn桁目を2
で割り、剰余が0であるか否かを判別する偶数奇数判別
手段と、 前記5判別手段によりn+1桁目以降を1つとした数値
が5に等しくはないと判別された場合に、整数Aのn+
1桁目の数値が5以上であるか否かを判別する四捨五入
判別手段と、 前記偶数奇数判別手段により剰余が0であると判別され
た場合、及び前記四捨五入判別手段によりn+1桁目が
5以上ではないと判別された場合に、n+1桁目以降の
数値を切り捨てて整数Bを算出する切り捨て処理手段
と、 前記偶数奇数判別手段により剰余が0でないと判別され
た場合、及び前記四捨五入判別手段によりn+1桁目が
5以上であると判別された場合に、n桁目を1だけ増し
n+1桁目以降の数値を切り捨てて整数Bを算出する切
り上げ処理手段とを備えていることを特徴とする端数処
理装置。
3. An integer A obtained by fractionally processing an integer A with the number of significant digits n.
A fraction processing device for calculating B, which takes a numerical value from the (n + 1) th digit of the integer A as one numerical value.
5 determining means for determining whether the numerical value is equal to 5
And a numerical value in which the number after the (n + 1) th digit is set to one by the 5 discriminating means.
Is determined to be equal to 5, the n-th digit of the integer A is changed to 2
Even odd number discrimination to determine whether the remainder is 0
Means and a numerical value in which the number after the (n + 1) th digit is set to one by the 5 discriminating means.
Is determined not to be equal to 5, then n +
Rounding to determine if the first digit is greater than 5
The remainder is determined to be 0 by the determination means and the even / odd determination means.
And the (n + 1) th digit is determined by the rounding discrimination means.
If it is determined that it is not 5 or more,
Truncation processing means for calculating an integer B by truncating a numerical value
If the remainder is not 0 determined by the even-odd judging means
And the (n + 1) th digit is determined by the rounding discrimination means.
If it is determined that it is 5 or more, the n-th digit is increased by 1.
Calculate the integer B by truncating the value after the (n + 1) th digit
And a lifting processing means.
Equipment.
【請求項4】 整数Aを上位からn桁目で端数処理して
整数Bを計算する端数処理装置であって、 整数Aのn+1桁目以降の数値を1つの数値として取り
出し、該数値が5に等しいか否かを判別する5判別手段
と、 前記5判別手段によりn+1桁目以降を1つとした数値
が5に等しいと判別された場合に、整数Aのn桁目を2
で割り、剰余が0であるか否かを判別する偶数奇数判別
手段と、 前記5判別手段によりn+1桁目以降を1つとした数値
が5に等しくはないと 判別された場合に、整数Aのn+
1桁目の数値が5以上であるか否かを判別する四捨五入
判別手段と、 前記偶数奇数判別手段により剰余が0であると判別され
た場合、及び前記四捨五入判別手段によりn+1桁目が
5以上ではないと判別された場合に、n+1桁目以降の
数値を切り捨てて整数Bを算出する切り捨て処理手段
と、 前記偶数奇数判別手段により剰余が0でないと判別され
た場合、及び前記四捨五入判別手段によりn+1桁目が
5以上であると判別された場合に、n桁目を1だけ増し
n+1桁目以降の数値を切り捨てて整数Bを算出する切
り上げ処理手段とを備えていることを特徴とする端数処
理装置。
4. An integer A is rounded to the nth digit from the highest order.
A fraction processing device for calculating an integer B, which takes a numerical value after the (n + 1) th digit of the integer A as one numerical value.
5 determining means for determining whether the numerical value is equal to 5
And a numerical value in which the number after the (n + 1) th digit is set to one by the 5 discriminating means.
Is determined to be equal to 5, the n-th digit of the integer A is changed to 2
Even odd number discrimination to determine whether the remainder is 0
Means and a numerical value in which the number after the (n + 1) th digit is set to one by the 5 discriminating means.
Is determined not to be equal to 5, then n +
Rounding to determine if the first digit is greater than 5
The remainder is determined to be 0 by the determination means and the even / odd determination means.
And the (n + 1) th digit is determined by the rounding discrimination means.
If it is determined that it is not 5 or more,
Truncation processing means for calculating an integer B by truncating a numerical value
If the remainder is not 0 determined by the even-odd judging means
And the (n + 1) th digit is determined by the rounding discrimination means.
If it is determined that it is 5 or more, the n-th digit is increased by 1.
Calculate the integer B by truncating the value after the (n + 1) th digit
And a lifting processing means.
Equipment.
JP24381696A 1996-09-13 1996-09-13 Fraction processing device Expired - Fee Related JP3194080B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24381696A JP3194080B2 (en) 1996-09-13 1996-09-13 Fraction processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24381696A JP3194080B2 (en) 1996-09-13 1996-09-13 Fraction processing device

Publications (2)

Publication Number Publication Date
JPH1091398A JPH1091398A (en) 1998-04-10
JP3194080B2 true JP3194080B2 (en) 2001-07-30

Family

ID=17109361

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24381696A Expired - Fee Related JP3194080B2 (en) 1996-09-13 1996-09-13 Fraction processing device

Country Status (1)

Country Link
JP (1) JP3194080B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4893340B2 (en) * 2007-01-30 2012-03-07 カシオ計算機株式会社 Calculation apparatus and calculation program
SG184482A1 (en) * 2010-04-06 2012-11-29 Justone Database Inc Data storage and/or retrieval based on a database model-agnostic, schema-agnostic and workload-agnostic data storage and access models

Also Published As

Publication number Publication date
JPH1091398A (en) 1998-04-10

Similar Documents

Publication Publication Date Title
US20160358274A1 (en) Patent Claims Analysis System and Method
US11393237B1 (en) Automatic human-emulative document analysis
JPS62288956A (en) Interface for calculating device
CN107797963A (en) Processing method, device and the terminal of expression formula
US4941119A (en) Method and apparatus for predicting an overflow in an integer multiply
JP3194080B2 (en) Fraction processing device
CN109672706B (en) Information recommendation method and device, server and storage medium
CN116402166B (en) Training method and device of prediction model, electronic equipment and storage medium
US4758975A (en) Data processor capable of processing floating point data with exponent part of fixed or variable length
JPH049340B2 (en)
US6493738B1 (en) Apparatus and method for rounding numerical values according to significant digits or rounding interval
US3987290A (en) Calculator apparatus for displaying data in engineering notation
EP0490875A1 (en) Electronic calculator
US4321688A (en) Electronic equipment capable of statistic processing
CN112926314A (en) Document repeatability identification method and device, electronic equipment and storage medium
CN113377910A (en) Emotion evaluation method and device, electronic equipment and storage medium
EP1307813B1 (en) Apparatus and method for rounding numerical values according to significant digits or rounding interval
CN115617392B (en) Method and device for determining version number
Lamere Inference of Gene Coexpression Networks from Bulk-Based RNA-Sequencing Data
JP3653583B2 (en) Computer-readable recording medium recording a decimal point alignment program
JP3111498B2 (en) Record search method and data processing device
JP2566587B2 (en) Database search method
JP3369207B2 (en) Kanji input device
JP2513354B2 (en) Floating point arithmetic auxiliary circuit
JP3496499B2 (en) Calculation data processing device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090601

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100601

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100601

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110601

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120601

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120601

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130601

Year of fee payment: 12

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees