JPH04104348U - Significant figure calculator - Google Patents

Significant figure calculator

Info

Publication number
JPH04104348U
JPH04104348U JP527891U JP527891U JPH04104348U JP H04104348 U JPH04104348 U JP H04104348U JP 527891 U JP527891 U JP 527891U JP 527891 U JP527891 U JP 527891U JP H04104348 U JPH04104348 U JP H04104348U
Authority
JP
Japan
Prior art keywords
significant
value
operand
calculation
input
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.)
Pending
Application number
JP527891U
Other languages
Japanese (ja)
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 JP527891U priority Critical patent/JPH04104348U/en
Publication of JPH04104348U publication Critical patent/JPH04104348U/en
Pending legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Abstract

(57)【要約】 【目的】 実験値等の誤差を含む被演算値の有効数字部
を演算処理した丸め誤差を含む運算値に対して、容易且
つ正確に有効数字部を取り出すことが可能にする。 【構成】 キー入力部2から入力された被演算値を演算
子に基づいて演算部6が演算処理し、演算処理された演
算値と演算子とがメモリ部10に記憶される。比較判断
部7は複数の被演算値を比較して演算値の有効数字部を
判断し、数値丸め処理部8は演算部6で演算処理された
数値を比較判断部7により判断された有効数字部に丸め
る。丸められた演算値の有効数字部は表示部3で表示さ
れる。
(57) [Summary] [Purpose] To make it possible to easily and accurately extract the significant figure part of a calculated value including rounding errors obtained by processing the significant figure part of an operand value including errors such as experimental values. . [Structure] A calculation unit 6 performs calculation processing on an operand value inputted from a key input unit 2 based on an operator, and the processed calculation value and the operator are stored in a memory unit 10. The comparison/judgment unit 7 compares a plurality of operand values to determine the significant figure part of the calculated value, and the numerical rounding unit 8 converts the numerical value processed by the calculation unit 6 into the significant figure part determined by the comparison/judgment unit 7. Roll into portions. The significant figure part of the rounded calculation value is displayed on the display section 3.

Description

【考案の詳細な説明】[Detailed explanation of the idea]

【0001】0001

【産業上の利用分野】[Industrial application field]

本考案は、実験値等の誤差をもつ有効数字部について計算を行なう有効数字運 算器に関する。 The present invention is a method for calculating significant figures with errors such as experimental values. Concerning calculators.

【0002】0002

【従来の技術】[Conventional technology]

実験値等の数値は、有効数字部と誤差部からなる。この為、実験値等の数値を 被演算値として演算処理する場合、まず有効数字部を取り出してから演算処理を 行なう必要がある。この有効数字部の取り出しは、通常四捨五入,切り上げ,切 り捨て等にて実施される。しかしながら、有効数字の最小桁の数字には上記四捨 五入等の丸め誤差が含まれているので、演算値にもこの丸め誤差が含まれてしま う。この為、演算値に対して再度、四捨五入等による有効数字部の取り出しを行 なう必要がある。 Numerical values such as experimental values consist of a significant figure part and an error part. For this reason, numerical values such as experimental values are When performing arithmetic processing as an operand value, first extract the significant figure part and then perform the arithmetic processing. It is necessary to do it. This extraction of significant figures is usually done by rounding, rounding up, or truncating. This will be done by discarding the waste. However, the number with the least significant digit is rounded off. Since rounding errors such as quintuple are included, the calculated value also includes this rounding error. cormorant. For this reason, extract the significant figures by rounding off the calculated value again. I need to do it now.

【0003】 上述した必要性から従来は、計算作業者自身若しくはこの演算値の利用者が、 演算内容を理解した上で、最終演算値からこの演算値の誤差部分を判断して、こ の誤差部分を取り除き、有効数字のみを取り出していた。0003 Due to the above-mentioned necessity, conventionally, the calculation operator or the user of the calculated value After understanding the calculation details, determine the error part of this calculated value from the final calculated value, and then The error part was removed and only the significant figures were extracted.

【0004】0004

【考案が解決しようとする課題】[Problem that the idea aims to solve]

従って、従来は有効数字の運算では、作業者等がその運算値に対して再度、有 効数字の見直しと丸め作業を行なうという面倒な手間と時間が掛かり効率的でな く、間違いが生じやすいという問題があった。 Therefore, in the past, when calculating significant figures, the operator etc. had to re-evaluate the calculated value. Reviewing effective figures and rounding is a tedious and time-consuming process that is not efficient. The problem was that it was difficult to use and mistakes were easily made.

【0005】 本考案は上記のような実情に鑑みてなされたもので、実験値等の誤差を含む被 演算値の有効数字部を演算処理した丸め誤差を含む運算値に対して、容易且つ正 確に有効数字部を取り出すことが可能になる有効数字運算器を提供することを目 的とする。[0005] The present invention was developed in view of the above-mentioned circumstances, and is designed to deal with the effects of experimental values, etc. that include errors. It is easy and accurate to calculate the calculated value including rounding error by processing the significant figure part of the calculated value. The aim is to provide a significant figure calculator that can accurately extract the significant figure part. target

【0006】[0006]

【課題を解決するための手段】[Means to solve the problem]

本考案は、上記課題を解決するために、誤差をもつ複数の被演算値の有効数字 部を入力する被演算値入力手段と、この被演算値の演算子を入力する演算子入力 手段と、上記被演算値入力手段から入力された被演算値を上記演算子入力手段か ら入力された所望の演算内容で演算処理する演算手段と、この演算手段により演 算処理された演算値と演算子とを記憶する記憶手段と、上記複数の被演算値を比 較し上記演算値の有効数字部を判断する有効数字比較判断手段と、上記演算手段 で演算処理された数値を上記有効数字比較判断手段により判断された有効数字部 に丸める数値丸め手段と、この数値丸め手段により丸められた演算値の有効数字 部を表示する表示手段とを具備することを特徴とする。 In order to solve the above problem, the present invention aims to calculate the significant digits of multiple operand values with errors. Operand value input means for inputting the part and operator input for inputting the operator of this operand value and the operand value input from the operand value input means to the operator input means. a calculation means that performs calculation processing using the desired calculation contents input from the computer; A storage means for storing the processed arithmetic values and operators, and a storage means for comparing the plurality of operand values. significant figure comparison and determination means for comparing and determining the significant figure part of the calculated value; and the calculating means. The significant figure part judged by the above-mentioned significant figure comparison judgment means of the numerical value processed by A numerical rounding means that rounds to , and the significant digits of the calculated value rounded by this numerical rounding means. and display means for displaying the part.

【0007】[0007]

【実施例】【Example】

以下、本考案の実施例を図面に基づいて説明する。 図1は、本考案を適用した有効数字運算器の構成を示す斜視図である。この有 効数字運算器1の上面には、被演算値入力部および演算子入力部であるキー入力 部2と表示部3とが配置されている。 Hereinafter, embodiments of the present invention will be described based on the drawings. FIG. 1 is a perspective view showing the configuration of a significant figure calculator to which the present invention is applied. This existence On the top surface of the effective figure calculator 1, there are key inputs that are an operand value input section and an operator input section. A section 2 and a display section 3 are arranged.

【0008】 図2は、上記有効数字運算器1の電子回路の構成を示す図である。有効数字運 算器1には、制御部4が備えられる。この制御部4には上記キー入力部2から入 力された被演算値および演算子に対して各部の動作制御を行なうものである。ま た、この制御部4には表示制御部5を介して上記表示部3が接続されると共に、 キー入力部2から入力される所望の演算子に応じた数値演算を行なう演算部6と 、この演算部6で演算処理された演算値の有効数字部を先にキー入力された被演 算値に対し比較判断する比較判断部7と、この演算処理値を上記比較判断部7に て比較判断された有効数字部に丸める数値丸め処理部8とが接続される。更に、 上記制御部4にはキー入力値を一時記憶保持する入力バッファ部9と、メモリ部 10(詳細は後述)と、このメモリ部10にアドレス信号を送るアドレス部11 が接続される。[0008] FIG. 2 is a diagram showing the configuration of the electronic circuit of the significant figure calculator 1. As shown in FIG. Significant figure luck The calculator 1 is equipped with a control section 4 . This control section 4 is entered from the key input section 2. The operation of each part is controlled for the input operand value and operator. Ma In addition, the display section 3 is connected to the control section 4 via a display control section 5, and a calculation unit 6 that performs numerical calculations according to a desired operator input from the key input unit 2; , the significant figure part of the calculated value processed by this calculation unit 6 is inputted using the key input first. A comparison/judgment section 7 compares and judges the calculated value, and the arithmetic processing value is sent to the comparison/judgment section 7. A numerical value rounding processing unit 8 is connected to round off the significant digits determined by comparison. Furthermore, The control section 4 includes an input buffer section 9 for temporarily storing key input values, and a memory section. 10 (details will be described later), and an address section 11 that sends an address signal to this memory section 10. is connected.

【0009】 上記メモリ部10は、上記演算部6で演算処理された演算値を記憶する演算デ ータメモリ12と、上記キー入力部2からキー入力された被演算値のケタ数を記 憶する有効数字のケタ数データメモリ13と、このケタ数データメモリ13と同 様にキー入力された被演算値の末尾の位を記憶する有効数字の末尾の位データメ モリ14を備える。また、メモリ部10はキー入力部2より入力される演算子の うち、被演算値の丸め誤差が運算結果に対して波及する範囲に応じて、運算値の 丸め処理方法を選択する為に、丸め誤差の波及範囲の種類を記憶するフラグエリ ア15をも備える。[0009] The memory section 10 is an arithmetic device that stores the arithmetic values processed by the arithmetic section 6. data memory 12 and the number of digits of the operand value key-input from the key input section 2. The data memory 13 for the number of significant digits to be stored is the same as the data memory 13 for the number of significant digits. The data file for the last digit of significant digits stores the last digit of the operand value entered using the key. A harpoon 14 is provided. The memory unit 10 also stores operators input from the key input unit 2. Depending on the extent to which the rounding error of the operand affects the calculation result, In order to select the rounding method, there is a flag area that remembers the type of rounding error influence range. A15 is also provided.

【0010】 図3乃至図6は、この有効数字運算器1の動作を示すフローチャートである。 以後、これらのフローチャートの流れに従い、動作の説明をする。まず、図1で 示したキー入力部2のうち、ACキー(電源キー)を押圧してオールクリア(オ ン)にすると、図2で説明したメモリ部10のうち演算データメモリ12、被演 算値のケタ数データメモリ13、および被演算値の末尾の位データメモリ14に 記憶されている数値をすべて消去し、フラグエリア15中のフラグを0にする。 (S1〜S2) 次に、キー入力部2より入力された第1の被演算値を入力バッファ部9に取り 込み、引き続き入力される第1の演算子を待つ。第1の演算子の演算内容が乗除 キー(「×」,「÷」キー)の場合はフラグを「1」とし、加減キー(「+」, 「−」キー)の場合はフラグ「0」のままにしておいて、上記入力バッファ部9 に取り込んでおいた被演算値を演算部6に移し、ケタ数値及び末尾の位値を算出 する。算出した値はそれぞれ、ケタ数データメモリ13と末尾の位データメモリ 14へ移ると共に、第1の被演算値自身も演算データとして演算データメモリ1 2へと移る。(S3〜S9) 第2の被演算値に続いてキー入力された第2の演算子が、加減乗除キー(「+ 」,「−」,「×」,「÷」キー)の場合は上述と同様に、乗除キーの場合には フラグ「1」、加減キーの場合にはそのままフラグ「0」として、演算データメ モリ12中に格納されている演算データと上記第2の被演算値とが上記第1の演 算子に従い演算処理され、その演算結果を演算データとして演算データメモリ1 2に格納し、表示制御部5を介して表示部3に表示される。尚、演算データメモ リ12に新たな演算データが格納される場合、それ以前に格納されてあった演算 データに上書きされる。即ち、演算データメモリ12には常に最新の演算データ が格納されているものとする。(S10〜S20) 以後、キー入力される演算子が等号キー(「=」キー)が選択されるまで、第 2の演算子を第1の演算子に置き換えて、第2の被演算値入力待ち状態(S10 )から繰り返す。0010 3 to 6 are flowcharts showing the operation of this significant figure calculator 1. Hereinafter, the operations will be explained according to the flow of these flowcharts. First, in Figure 1 Of the key input section 2 shown, press the AC key (power key) to clear all ), out of the memory unit 10 described in FIG. 2, the calculation data memory 12 and the In the digit number data memory 13 of the calculation value and the last digit data memory 14 of the operand value. All stored numerical values are erased and the flag in the flag area 15 is set to 0. (S1-S2) Next, the first operand value input from the key input section 2 is transferred to the input buffer section 9. and waits for the first operator to be input subsequently. The operation content of the first operator is multiplication and division. In the case of a key (“×”, “÷” key), the flag is set to “1”, and an addition/subtraction key (“+”, "-" key), leave the flag "0" and input the input buffer section 9. Transfer the operand value taken in to the calculation unit 6 and calculate the digit value and the last place value. do. The calculated values are stored in the digit number data memory 13 and the last digit data memory. 14, the first operand value itself is also stored in the calculation data memory 1 as calculation data. Move on to 2. (S3-S9) The second operator keyed in after the second operand value is ”, “-”, “×”, “÷” keys) are the same as above, and in the case of multiplication and division keys, If the flag is ``1'', and if it is an addition/subtraction key, the flag is set to ``0'' and the calculation data file is The calculation data stored in the memory 12 and the second operand value are The calculation is processed according to the operator, and the calculation result is stored in the calculation data memory 1 as calculation data. 2 and displayed on the display section 3 via the display control section 5. In addition, calculation data memo When new calculation data is stored in the memory 12, the previously stored calculation data The data will be overwritten. That is, the latest calculation data is always stored in the calculation data memory 12. is stored. (S10-S20) From now on, the operators that are keyed in will be numbered until the equal sign key (“=” key) is selected. The second operator is replaced with the first operator, and the second operand value input waiting state (S10 ) and repeat.

【0011】 第2以後の演算子にて等号キーが選択された場合、まず入力バッファ部9に一 時格納されている第2の被演算値が演算部6に移され、この第2の被演算値のケ タ数データをケタ数データメモリ13へ、末尾の位データを上記末尾の位データ メモリ14へと格納する。[0011] When the equal sign key is selected in the second and subsequent operators, first the input buffer section 9 is The second operand value stored at the time is transferred to the arithmetic unit 6, and the second operand value is digit number data to the digit number data memory 13, and the last digit data to the above-mentioned last digit data. The data is stored in the memory 14.

【0012】 次に、この第2の被演算値と第1の被演算値とが等号キー直近にキー入力され た第2の演算子に従い演算処理され、この演算値は演算データとして演算データ メモリ12へと格納される。(S21〜S26) そして、フラグエリア15のフラグが「1」か「0」かにより、次の2種類の 数値丸め処理が行なわれる。即ち、フラグ「1」の場合は、有効数字のケタ数デ ータメモリ13に格納されているケタ数データを比較判断部7へ移し、このケタ 数データを比較して、ケタ数の最小値を以て判断値とし演算データメモリ12中 の演算データが数値丸め処理部8でこの判断値に合わせたケタに四捨五入処理さ れる。(S27〜S31) フラグ「0」の場合は、有効数字の末尾の位データメモリ14に格納されてい る末尾の位データを比較判断部7へ移し、この末尾の位データを比較して、末尾 の位の最大値を以て判断値とし演算データメモリ12中の演算値が数値丸め処理 部8で上記判断値に合わせたケタに四捨五入処理される。この四捨五入処理され た数値は、被演算値である有効数字の運算値として、表示制御部5を介して表示 部3に表示処理される。(S32〜S35) 更に続行するには、新規運算の場合「AC」キーを押圧することによりスター ト状態(S1)に戻り、加減キーを押圧することにより演算データメモリ12中 の演算データを第1の被演算値として第2の被演算値待ち状態(S10)から繰 り返す。乗除キーの場合は、フラグエリア15のフラグを「1」としてから、上 記第二の被演算データ待ち状態から繰り返す。(S36〜S39) 図7および図8は、上述したフローチャートに基づき、本考案の有効数字運算 器1の操作例を示す図である。図7は加減のみの操作例であり、「1.234+ 321.09−0.098+765.4=1087.6」という運算を実施する 場合について説明する。0012 Next, this second operand value and the first operand value are keyed in immediately before the equal sign key. The calculation process is performed according to the second operator, and this calculation value is used as calculation data as calculation data. The data is stored in the memory 12. (S21-S26) Then, depending on whether the flag in flag area 15 is "1" or "0", the following two types of Numerical rounding is performed. In other words, if the flag is "1", the number of significant digits is The digit number data stored in the data memory 13 is transferred to the comparison/judgment section 7, and this digit number data is Compare the numerical data and use the minimum value of the number of digits as the judgment value in the calculation data memory 12. The calculated data is rounded off to the digit according to this judgment value in the numerical rounding processing section 8. It will be done. (S27-S31) If the flag is “0”, the last significant figure is stored in the data memory 14. The last digit data of The maximum value of the digits is used as the judgment value, and the calculated value in the calculation data memory 12 is rounded off. In section 8, rounding is performed to the digit corresponding to the above judgment value. This rounding process is The calculated numerical value is displayed via the display control unit 5 as the calculated value of significant figures, which is the operand value. Display processing is performed in part 3. (S32-S35) To continue further, press the "AC" key to start a new calculation. Return to the state (S1) and press the addition/subtraction key to change the calculation data memory 12. is repeated from the second operand value waiting state (S10) using the operation data of the first operand value. Go back. For multiplication and division keys, set the flag in flag area 15 to "1" and then press the Repeat from the second operand data waiting state. (S36-S39) Figures 7 and 8 illustrate the significant figure operation of the present invention based on the above-mentioned flowchart. 2 is a diagram showing an example of how the device 1 is operated. FIG. Figure 7 shows an example of operation for adding and subtracting only, “1.234+ 321.09-0.098+765.4=1087.6" Let me explain the case.

【0013】 ACキー(電源キー)をオールクリア(オン)した後、第1の被演算値「1. 234」を入力すると、入力値「1.234」が表示される。この際、入力値は 入力バッファ部9に一時格納されている為、メモリ部10は初期状態にある。( ex1) 次に、第1の演算子「+」を入力すると、先に表示されている「1.234」 と共に「+」が表示される。この表示と同時に、入力バッファ部9中の第1の被 演算値「1.234」は演算部6へ移り、ケタ数と末尾の位が算出される。すな わち、ケタ数「4」、末尾の位「−3」(10-3を表わす)が算出される。この ケタ数「4」、末尾の位「−3」はそれぞれ、ケタ数データメモリ13、末尾の 位メモリ14へ格納される。また、第1の被演算値「1.234」も演算データ メモリ12へと格納される。この際、フラグエリア15は「0」のままである。 (ex2) 続いて、第2の被演算値「321.09」を入力すると、それまでの表示が消 去され、入力値「321.09」が新たに表示される。また、この際の入力値「 321.09」は、上記第1の被演算値「1.234」の入力の場合と同様に、 入力バッファ部9に一時格納される為、メモリ部10はそのまま保持されている 。(ex3) 引き続き、第2の演算子「−」が入力された時点で、「−」が表示され、上述 した第1の被演算値と同様な処理により第2の演算値「321.09」のケタ数 「5」と末尾の位「−2」が夫々有効数字のケタ数データメモリ13と末尾の位 データメモリ14に格納される。また、それまでに入力された「1.234+3 21.09」が演算処理され、演算値「322.324」が演算データメモリ1 2へと格納される。(ex4) 以後同様に、第3の被演算値「0.098」、第3の演算子「+」、第4の被 演算値「765.4」、第4の演算子「=」の入力に伴い、有効数字のケタ数デ ータメモリ13には「4,5,2,4」が、有効数字の末尾の位データメモリ1 4には「−3,−2,−3,−1」が、演算データメモリ12には「1087. 626」が夫々格納され、フラグエリア15中のフラグは「0」となっている。[0013]After all clearing (turning on) of the AC key (power key), when the first operand value "1.234" is input, the input value "1.234" is displayed. At this time, since the input value is temporarily stored in the input buffer section 9, the memory section 10 is in an initial state. (ex1) Next, when the first operator "+" is input, "+" is displayed together with the previously displayed "1.234". Simultaneously with this display, the first operand value "1.234" in the input buffer section 9 is transferred to the arithmetic section 6, where the number of digits and the last digit are calculated. That is, the number of digits is "4" and the last digit is "-3" (representing 10 -3 ). The digit number "4" and the last digit "-3" are stored in the digit number data memory 13 and the last digit memory 14, respectively. Further, the first operand value “1.234” is also stored in the calculation data memory 12. At this time, the flag area 15 remains at "0". (ex2) Next, when the second operand value "321.09" is input, the previous display is erased and the input value "321.09" is newly displayed. In addition, the input value "321.09" at this time is temporarily stored in the input buffer unit 9, as in the case of inputting the first operand value "1.234", so the memory unit 10 remains unchanged. Retained. (ex3) Subsequently, when the second operator "-" is input, "-" is displayed, and the second calculated value "321.09" is generated by the same process as the first operand value described above. The number of digits "5" and the last digit "-2" are stored in the significant digit number data memory 13 and the last digit data memory 14, respectively. Further, "1.234+3 21.09" inputted up to that point is arithmetic processed, and the arithmetic value "322.324" is stored in the arithmetic data memory 12. (ex4) After that, similarly input the third operand value “0.098”, the third operator “+”, the fourth operand value “765.4”, and the fourth operator “=” Accordingly, "4, 5, 2, 4" is stored in the data memory 13 for the number of significant digits, and "-3, -2, -3, -1" is stored in the data memory 14 for the last digit of the significant digits. , "1087.626" are stored in the calculation data memory 12, and the flag in the flag area 15 is "0".

【0014】 更に、「=」キーが押圧されたことにより、演算値丸め処理が開始される。こ の場合は、演算子に乗除が選択されていない為、フラグ「0」なので有効数字の 末尾の位データメモリ14の中から最大値「−1」が選択され、演算データメモ リ12中の「1087.626」が上記選択値「−1」と同じ位に四捨五入処理 で丸められる。即ち、「1087.626」が「1087.6」となる。[0014] Furthermore, when the "=" key is pressed, rounding of the calculated value is started. child In the case of , multiplication and division is not selected as the operator, so the flag is 0, so the number of significant digits is The maximum value "-1" is selected from the last digit data memory 14, and the calculation data memory "1087.626" in 12 is rounded off to the same place as the selected value "-1" above. is rounded off. That is, "1087.626" becomes "1087.6".

【0015】 上述により得られた値「1087.6」が表示部3に表示処理される。(ex 5〜ex8) 図8は乗除を含む操作例であり、「(0.1234+2.10987)×0. 98÷0.0032=6.8×102 」という運算を実施する場合について説明 するものである。The value “1087.6” obtained as described above is displayed on the display unit 3 . (ex 5 to ex 8) FIG. 8 is an example of an operation including multiplication and division, and a case will be explained in which the operation "(0.1234 + 2.10987) x 0.98 ÷ 0.0032 = 6.8 x 10 2 " is carried out. It is something.

【0016】 上述した図7の場合と同様に、第1の被演算値「0.1234」、第1の演算 子「+」、第2の被演算値「2.10987」を入力すると、有効数字のケタ数 データメモリ13に「4」が、有効数字の末尾の位データメモリ14に「−4」 が格納され、演算データメモリ12とフラグエリア15は初期状態の「0」のま ま保持されている。(ex11〜ex13) 続いて、第2の演算子「×」を入力すると、第2の被演算値「2.10987 」のケタ数「6」と末尾の位「−5」が夫々有効数字のケタ数データメモリ13 と有効数字の末尾の位データメモリ14に格納され、演算値「2.23327」 が演算データメモリ12に格納される。また、フラグは「1」となる。(ex1 4) 以後同様に、第3の被演算値「0.98」、第4の演算子「÷」、第4の被演 算値「0.0032」、第5の演算子「=」の入力に伴い、有効数字のケタ数デ ータメモリ13に「4,6,2,2」が、有効数字の末尾の位データメモリ14 に「−4,−5,−2,−4」が、演算データメモリ12には「683.938 9375」が格納され、フラグエリア15中のフラグは「1」となっている。[0016] As in the case of FIG. 7 described above, the first operand value "0.1234", the first operation When you enter the child "+" and the second operand value "2.10987", the number of significant digits "4" is in the data memory 13, and "-4" is in the data memory 14 at the last significant figure. is stored, and the calculation data memory 12 and flag area 15 remain at the initial state of "0". It is maintained. (ex11~ex13) Next, when you input the second operator “×”, the second operand value “2.10987 The number of digits "6" and the last digit "-5" are respectively significant digits data memory 13 and the last significant figure is stored in the data memory 14, and the calculated value is "2.23327". is stored in the calculation data memory 12. Further, the flag becomes "1". (ex1 4) Thereafter, in the same way, the third operand value "0.98", the fourth operator "÷", and the fourth operand With the input of the calculated value "0.0032" and the fifth operator "=", the number of significant digits is displayed. "4, 6, 2, 2" is stored in the data memory 13, and the last significant digit is stored in the data memory 14. "-4, -5, -2, -4" is stored in the calculation data memory 12, and "683.938" is stored in the calculation data memory 12. 9375" is stored, and the flag in the flag area 15 is "1".

【0017】 更に、「=」キーが押圧されたことにより、演算値丸め処理が開始される。こ の場合はフラグ「1」なので、有効数字のケタ数データメモリ13の中から最小 値「2」が選択され、演算データメモリ12中の「683.9389375」が 上記選択値「2」と同じケタ数に四捨五入処理で丸められる。即ち、「683. 9389375」が「6.8×102 」となる。[0017]Furthermore, when the "=" key is pressed, the calculation value rounding process is started. In this case, since the flag is "1", the minimum value "2" is selected from the significant digit number data memory 13, and "683.9389375" in the calculation data memory 12 is the same digit as the selected value "2". Rounded to the nearest whole number. That is, "683.9389375" becomes "6.8×10 2 ".

【0018】 上述により得られた値「6.8×102 」が表示部3に表示処理される。(e x15〜ex18)The value “6.8×10 2 ” obtained above is displayed on the display unit 3 . (ex15~ex18)

【0019】[0019]

【考案の効果】[Effect of the idea]

以上詳述したように本考案によれば、誤差をもつ複数の被演算値の有効数字部 を入力する被演算値入力手段と、この被演算値の演算子を入力する演算子入力手 段と、上記被演算値入力手段から入力された被演算値を上記演算子入力手段から 入力された所望の演算内容で演算処理する演算手段と、この演算手段により演算 処理された演算値と演算子とを記憶する記憶手段と、上記複数の被演算値を比較 し上記演算値の有効数字部を判断する有効数字比較判断手段と、上記演算手段で 演算処理された数値を上記有効数字比較判断手段により判断された有効数字部に 丸める数値丸め手段と、この数値丸め手段により丸められた演算値の有効数字部 を表示する表示手段とを具備したので、実験値等の誤差を含む被演算値の有効数 字部を演算処理した丸め誤差を含む運算値に対して、容易且つ正確に有効数字部 を取り出すことが可能になる。 As detailed above, according to the present invention, the significant digit parts of multiple operand values with errors are an operand value input means for inputting the operand value, and an operator input means for inputting the operator for this operand value. and the operand value inputted from the operand value input means from the operator input means. A calculation means that performs calculation processing based on the input desired calculation contents, and a calculation means that performs calculation processing using the input desired calculation content. A storage means for storing processed operation values and operators, and comparison of the plurality of operand values mentioned above. and a significant figure comparison/judgment means for determining the significant figure part of the above-mentioned calculated value, and the above-mentioned calculation means. The calculated numerical value is converted into the significant figure part determined by the above-mentioned significant figure comparison judgment means. A numerical rounding means and the significant figure part of the calculated value rounded by this numerical rounding means. The effective number of operand values including errors such as experimental values, etc. Easily and accurately calculate the significant figure part for calculated values that include rounding errors when calculating the character part. becomes possible to take out.

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

【図1】外観を示す斜視図である。FIG. 1 is a perspective view showing the external appearance.

【図2】回路構成を示すブロック図である。FIG. 2 is a block diagram showing a circuit configuration.

【図3】動作を示すフローチャートである。FIG. 3 is a flowchart showing the operation.

【図4】動作を示すフローチャートである。FIG. 4 is a flowchart showing the operation.

【図5】動作を示すフローチャートである。FIG. 5 is a flowchart showing the operation.

【図6】動作を示すフローチャートである。FIG. 6 is a flowchart showing the operation.

【図7】操作状態を示す図である。FIG. 7 is a diagram showing operating states.

【図8】操作状態を示す図である。FIG. 8 is a diagram showing operating states.

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

1…有効数字運算器、2…キー入力部、3…表示部、4
…制御部、5…表示制御部、6…演算部、7…比較判断
部、8…数値丸め処理部、9…入力バッファ部、10…
メモリ部、11…アドレス部、12…演算データメモ
リ、13…ケタ数データメモリ、14…末尾の位データ
メモリ、15…フラグエリア。
1... Significant figure calculator, 2... Key input section, 3... Display section, 4
...Control unit, 5...Display control unit, 6...Calculation unit, 7...Comparison judgment unit, 8...Numeric value rounding processing unit, 9...Input buffer unit, 10...
Memory section, 11...address section, 12...calculation data memory, 13...digit number data memory, 14...last digit data memory, 15...flag area.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 誤差をもつ複数の被演算値の有効数字部
を入力する被演算値入力手段と、この被演算値の演算子
を入力する演算子入力手段と、上記被演算値入力手段か
ら入力された被演算値を上記演算子入力手段から入力さ
れた所望の演算内容で演算処理する演算手段と、この演
算手段により演算処理された演算値と演算子とを記憶す
る記憶手段と、上記複数の被演算値を比較し上記演算値
の有効数字部を判断する有効数字比較判断手段と、上記
演算手段で演算処理された数値を上記有効数字比較判断
手段により判断された有効数字部に丸める数値丸め手段
と、この数値丸め手段により丸められた演算値の有効数
字部を表示する表示手段とを具備する有効数字運算器。
Claim 1: Operand value input means for inputting significant figure parts of a plurality of operand values having errors; operator input means for inputting an operator of the operand values; and from the operand value input means. an arithmetic means for arithmetic processing an input operand value with desired arithmetic contents input from the operator input means; a storage means for storing the arithmetic value and the operator processed by the arithmetic means; Significant figure comparison/judgment means for comparing a plurality of operand values and determining the significant figure part of the calculated value; and rounding the numerical value processed by the calculation means to the significant figure part determined by the significant figure comparison/judgment means. A significant figure calculator comprising a numerical value rounding means and a display means for displaying the significant figure part of the calculated value rounded by the numerical value rounding means.
JP527891U 1991-02-12 1991-02-12 Significant figure calculator Pending JPH04104348U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP527891U JPH04104348U (en) 1991-02-12 1991-02-12 Significant figure calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP527891U JPH04104348U (en) 1991-02-12 1991-02-12 Significant figure calculator

Publications (1)

Publication Number Publication Date
JPH04104348U true JPH04104348U (en) 1992-09-08

Family

ID=31735681

Family Applications (1)

Application Number Title Priority Date Filing Date
JP527891U Pending JPH04104348U (en) 1991-02-12 1991-02-12 Significant figure calculator

Country Status (1)

Country Link
JP (1) JPH04104348U (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56159734A (en) * 1980-05-13 1981-12-09 Casio Comput Co Ltd Arithmetic system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56159734A (en) * 1980-05-13 1981-12-09 Casio Comput Co Ltd Arithmetic system

Similar Documents

Publication Publication Date Title
WO2024120249A1 (en) Data processing method and apparatus, device, and storage medium
JP4961792B2 (en) Formula editing apparatus and formula editing program
JPH04104348U (en) Significant figure calculator
JP2009059256A (en) Electronic device capable of drawing graph, and program
US6347326B1 (en) N bit by M bit multiplication of twos complement numbers using N/2+1 X M/2+1 bit multipliers
JPH1040247A (en) Data processor
WO2018119760A1 (en) Data input method, apparatus and device
JP3252493B2 (en) Electronic calculator and its calculation processing method
CN111708473B (en) Operation control method and device of application program and electronic equipment
US5675827A (en) Information processing system, a processor, and an information processing method for the performing of an arithmetic operation of numeric information
US5285399A (en) Calculator with easily enterable constant calculation mode
JP3498323B2 (en) Electronic calculator and arithmetic processing method
JPH01282633A (en) Non-normalized number processing system
JP2564742B2 (en) Electronic data processor
JPH0830556A (en) Electronic desk calculator
JPH0736835A (en) Electronic computer
JPH0555245U (en) Small electronic calculator
JPH0555244U (en) Small electronic calculator
JP3521919B2 (en) Calculator and fraction input and display method in calculator
JP3940771B2 (en) Calculation method that minimizes input and checking
JPH0628137A (en) Function display device
JPS63149756A (en) Electronic calculator
JPH086762A (en) Multiplying circuit
JPH05324565A (en) Electronic desk calculator
JP2006126933A (en) Computer equipped with error announcing function and its method