JP3693262B2 - Electronic computer - Google Patents

Electronic computer Download PDF

Info

Publication number
JP3693262B2
JP3693262B2 JP05649095A JP5649095A JP3693262B2 JP 3693262 B2 JP3693262 B2 JP 3693262B2 JP 05649095 A JP05649095 A JP 05649095A JP 5649095 A JP5649095 A JP 5649095A JP 3693262 B2 JP3693262 B2 JP 3693262B2
Authority
JP
Japan
Prior art keywords
rounding
input
instruction
calculation
key
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
JP05649095A
Other languages
Japanese (ja)
Other versions
JPH08227400A (en
Inventor
勝吉 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP05649095A priority Critical patent/JP3693262B2/en
Priority to TW084105503A priority patent/TW283223B/zh
Priority to US08/560,894 priority patent/US5870318A/en
Priority to EP95118484A priority patent/EP0715263B1/en
Priority to DE69530461T priority patent/DE69530461T2/en
Priority to MYPI95003626A priority patent/MY113894A/en
Priority to KR1019950045768A priority patent/KR100246519B1/en
Priority to CN95117574A priority patent/CN1095131C/en
Publication of JPH08227400A publication Critical patent/JPH08227400A/en
Priority to US08/940,614 priority patent/US6026449A/en
Priority to HK98114753A priority patent/HK1013471A1/en
Application granted granted Critical
Publication of JP3693262B2 publication Critical patent/JP3693262B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【産業上の利用分野】
本発明は、検算機能を備えた電子計算機に関するものである。
【0002】
【従来の技術】
電卓などの電子計算機には検算機能を備えたものがある。この種の電子計算機は、1回目の計算のキー入力操作および計算結果を記憶しておき、2回目に行われるキー入力操作および計算結果と1回目の計算のキー入力操作および計算結果とを比較し、差異がある場合に警告音などによって間違いを告知するようになっている。
【0003】
【発明が解決しようとする課題】
しかしながら上述した従来の電子計算機では、1回目と2回目のキー入力操作および計算結果を比較して計算が正しかったか否かが判断されるため、少数点以下の桁数を指定する桁数指定スイッチや、指定された桁の下1桁を四捨五入するか切り捨てるかを指定する丸めスイッチの設定が1回目と2回目とで異なっていても答えを出すまで入力者には分からない。そのため、1回目と2回目とで答が異なっていた場合には、桁数指定スイッチおよび丸めスイッチを操作して、丸め演算状態を設定し直してから2回目の入力操作を最初からやり直さなければならず、操作性が悪いという問題があった。
【0004】
本発明の目的は、上記従来技術の欠点を解消し、2回目の計算における丸め状態が1回目の計算のときと異なっている場合、そのことを直ちに入力者に知らせてその後の無駄なキー入力操作を防止できる操作性の良い電子計算機を提供することにある。
【0005】
【課題を解決するための手段】
上記目的を達成するために本発明の電子計算機は、
通常演算モードで入力された一連の数値及び演算命令を含む演算式データを記憶し、検算モードで新たに入力された演算式データと前記記憶された演算式データとを比較することで検算を行う検算機能を備えた電子計算機において、
演算式データを入力する入力手段と、
通常演算モードでこの入力手段により入力された演算式データに基づいて演算を実行する演算手段と、
この演算手段による演算の丸めを指示する丸め指示手段と、
この丸め指示手段によって指定された丸めで前記演算手段による演算結果を丸める丸め処理手段と、
前記丸め指示手段の丸め指示の状態と前記入力手段により入力された演算式データとを対応させて記憶する記憶手段と、
通常演算モードから検算モードに切り換えられた後、新たに入力された演算式データとその時の丸め指示手段の状態と、前記記憶手段に記憶されている演算式データと丸め指示の状態との一致を検出する検出手段と、
この検出手段により演算式データ及び丸め指示状態の少なくとも一方が一致していないと検出された際に不一致であることを示す報音を行う第1の報知手段と、
前記検出手段により少なくとも一方が一致していないと検出された場合において、この検出された不一致が丸め指示状態である際に、丸め指示状態が一致していないことを示す表示を行う第2の報知手段と、
を備えてなることを特徴としている(請求項1)。
【0006】
本発明の電子計算機において
前記丸め指示手段は前記演算手段によって導かれた演算結果について桁数指定、桁数指定で四捨五入、桁数指定無しのいずれかを指定する手段を備えていることが望ましい(請求項2)。
【0007】
また、前記丸め指示手段は、
前記演算手段によって導かれた演算結果について小数点以下の桁数を指定する桁数指定手段と、
この桁数指定手段によって指定された小数点以下の桁数となるように指定された桁数以下の切捨又は四捨五入を指示する切捨指定手段と
を備えていることが望ましい(請求項3)。
【0008】
また、前記記憶手段は前記入力手段により入力される演算式データに含まれる演算命令データ(+、−、×、÷)毎に前記丸め指示手段による丸め指示の状態を記憶する手段を備え、
前記検出手段は新たに入力される演算式データ中の演算命令データが入力される毎に演算式データとその時の丸め指示手段の状態と、前記記憶手段に記憶されている演算式データと丸め指示の状態との一致を検出する手段を備えていることが望ましい(請求項4)。
【0011】
【作用】
請求項1に記載された電子計算機では、通常演算モードで入力手段により一連の数値及び演算命令を含む演算式データが入力されると、入力された演算式データに基づいて演算手段により演算が実行される。そして、丸め指示手段によって演算手段による演算の丸め指示がなされると、丸め指示手段によって指定された丸めで、演算手段による演算結果が丸め処理手段により丸め処理される。その際、丸め指示手段の丸め指示の状態と入力手段により入力された演算式データとが対応させて記憶手段に記憶される。そして、通常演算モードから検算モードに切り換えられた後、新たに入力された演算式データとその時の丸め指示手段の状態と、記憶手段に記憶されている演算式データと丸め指示の状態との一致が検出手段により検出され、演算式データ及び丸め指示状態の少なくとも一方が一致していないと検出された際には音によって第1の報知手段により不一致であることを示す報音がなされる。また、前記検出手段により少なくとも一方が一致していないと検出された場合において、この検出された不一致が丸め指示状態である際に、第2の報知手段により丸め指示状態が一致していないことを示す表示が行なわれる。
したがって入力者に音で演算式データ及び丸め指示状態の少なくとも一方の不一致を知らせるので、その後の無駄な入力操作を防止できるとともに、検出された不一致が丸め指示状態である際に、第2の報知手段が、丸め指示状態が一致していないことを示す表示を行うので、不一致が丸め指示状態であること入力者に表示にて知らせることができる。
【0012】
また、請求項2に記載された電子計算機によれば、演算手段によって導かれた演算結果に対して桁数指定、桁数指定で四捨五入、桁数指定無しのいずれの丸め状態で丸め処理を行うかを丸め指示手段により指定できる。
【0013】
また、請求項3に記載された電子計算機によれば、演算手段によって導かれた演算結果の小数点以下の桁数を桁数指定手段によって指定し、さらに演算結果が桁数指定手段によって指定された小数点以下の桁数となるように、指定された桁数以下を切捨又は四捨五入のいずれの丸め状態で丸め処理を行うかを切捨指定手段によって指定できる。
【0014】
また、請求項4に記載された電子計算機では、入力手段により入力される演算式データに含まれる演算命令データ(+、−、×、÷)毎に丸め指示手段による丸め指示の状態が記憶手段に記憶される。そして、新たに入力される演算式データ中の演算命令データが入力される毎に演算式データとその時の丸め指示手段の状態と、記憶手段に記憶されている演算式データと丸め指示の状態との一致が検出手段により検出される。
したがって、新たに演算命令データが入力される毎にそのときの丸め指示の状態と、前回その演算命令データが入力された時における丸め指示の状態との一致が検出され、一致しないときには直ちに報知が行なわれる。
【0017】
【実施例】
以下に、本発明の電子計算機の一実施例について説明する。
【0018】
図1は、この実施例の電子計算機の基本構成を示すブロック図である。
【0019】
同図に示す電子計算機1は、プログラムの命令に従って電子計算機1全体の制御を行う中央演算処理装置(CPU)2と、CPU2で処理するマイクロプログラムを記憶した読み出し専用メモリ(ROM)3と、データを記憶する随時書き込み読み出しメモリ(RAM)4と、データ入力や後述するモードの切換など行うためのキー入力部5と、少数点以下の桁数を指定するための桁数入力部6と、桁数入力部6によって指定された桁の下1桁を四捨五入するか切り捨てるかを指定するための演算条件入力部7と、CPU2から出力される数値データや各種メッセージデータを表示するための表示駆動回路8および表示部9と、CPU2から出力される告知音信号を増幅して放音するための増幅回路10およびスピーカ11とからなる。
【0020】
上記RAM4は、図2に示すように、上記表示部7に表示するデータを記憶する表示レジスタの領域(置数入力レジスタの領域を兼ねる)12と、CPU2が演算するための数値を一時記憶する演算用レジスタの領域13と、演算結果を一時記憶するメモリレジスタの領域14と、プログラム実行中の各種条件を表フラグF、Hの内容を記憶するフラグレジスタの領域15とを有する。
【0021】
各フラグの内容は下記のとおりである。
F= 0 通常の演算モード
F=1 検算モード
H=1 訂正モード
H=0 訂正モード解除
【0022】
また、RAM4は、キー入力部5からの入力内容を一時記憶するジャーナルメモリの領域16と、ジャーナルメモリの領域16の各レジスタを指定するアドレスポインタPnを記憶する領域17とを有している。
【0023】
ジャーナルメモリの領域16は、入力された数値を記憶する置数メモリの領域16aと、入力された演算命令(+、−、×、÷、=)を記憶するファンクションメモリの領域16bと、演算条件入力部7で指定された丸め状態指定データ(F、C、5/4)を記憶する丸め状態メモリの領域16cと、桁数入力部6によって指定された桁指定データ(4、2、1、0、ADD2)を記憶する桁指定メモリの領域16dとを有する。そして、キー入力部5から演算のための入力がなされる毎に、数値データと、その直後に入力された演算命令データと、そのときの丸め演算状態データ(丸め状態指定データ、桁指定データ)とをセットにして、アドレスポインタP0、P1、P2、P3、・・・によって指定されているジャーナルメモリの領域16のレジスタに順次記憶するようになっている。
【0024】
上記キー入力部5は、図3に示すように、電子計算機1の操作面18上に配設された置数キー群19、演算命令キー群20、命令キー群21、メモリーキー群22、および検算キー23を備えている。
【0025】
置数キー群19は、0から9までの数値をそれぞれ入力するための数字キー「0」〜「9」と、小数点を入力するための少数点キー「.」とからなる。
【0026】
演算命令キー群20は、四則演算命令をそれぞれ入力するための四則演算命令キー「+」、「−」、「×」、「÷」と、答を求めるためのイコールキー「=」とからなる。
【0027】
命令キー群21は、表示されている数値の正負を切り換えるための正負キー「+/−」と、百分率計算に切り換えるためのパーセントキー「%」と、検算モードにおいて前回の演算結果と今回の演算結果を交互に表示させるための確認キー「確認」と、押し間違えた数値の訂正(置数訂正)をするためのクリアキー「C」と、それまでの演算データを全て消去(初期化)するためのオールクリアキー「AC」とからなる。
【0028】
メモリーキー群22は、表示されている数値を上記メモリレジスタに記憶されている数値に足す(プラスの数値で入力)ためのメモリープラスキー「M+]と、引く(マイナスの数値で入力)ためのメモリーマイナスキー「M−」と、上記メモリレジスタに記憶されている数値を呼び戻すためのメモリーリコールキー「MR]と、上記メモリレジスタに記憶されている数値を呼び戻すと同時にメモリー内容を消去するためのメモリーリコールクリアーキー「MC]とからなる。
【0029】
検算キー「検算」23は、標準演算モードと検算モードとを交互に切り換えるための命令キーである。
【0030】
また、電子計算機1の操作面18には、上記桁数入力部6の操作部である小数点指定スイッチ26と上記演算条件入力部7の操作部である丸めスイッチ25とが設けられている。
【0031】
丸めスイッチ25は、小数点以下をどのように処理するかを指定するためのスイッチで、小数点以下を可能なだけ自由に求めるフリーモード゛F″と、小数点指定スイッチ26によって指定された桁の下1桁を切り捨てるカットモード゛C″と、四捨五入する四捨五入モード゛5/4″のいずれかを指定できるようになっている。
【0032】
小数点指定スイッチ26は、丸めスイッチ25がカットモード゛C″または四捨五入モード゛5/4″の指定になっているときに有効なスイッチで、小数点以下は求めない0桁モード゛0″、小数点以下1桁まで求める1桁モード゛1″、小数点以下2桁まで求める2桁モード゛2″、小数点以下4桁まで求める4桁モード゛4″のいずれかを指定できる。
また、この小数点指定スイッチ26は、「.」キーを押さなくても自動的に2桁目に小数点を入れる固定小数点モード゛ADD2″ の指定もできるようになっている。
【0033】
上記表示部7は、周知の液晶ディスプレイからなるものであり、CPU2から出力された数値データや各種メッセージデータなどが表示駆動回路6に入力されると、この表示駆動回路6によって駆動されて、図9に示されるように表示窓9aに置数や答などの数値データや、各種メッセージデータなどを表示するものである。
【0034】
表示窓9aは、図3に示すように操作面18の入力キーの上方に設けられている。この表示窓9aには8桁までの数値を表示できるようになっている。そして数値表示領域の左側には、RAM4のメモリレジスタに数値が入っているときは゛M″が、定数計算中は゛K″が、ある数を0で割るなどの入力エラーがあったときは゛E″が、それぞれ点灯するようになっている。
【0035】
また、数値表示領域の上側の領域は、゛検算中″、゛OK″、゛前回″、゛今回″、゛丸め″などのメッセージ表示領域であり、検算モードになっているときに゛検算中″が、検算の結果、計算が正しかったときに゛OK″が、表示されている数値が前回(通常演算モード)の数値のときに゛前回″が、今回(検算モード)の数値のときに゛今回″が、小数点指定スイッチ26およびラウンドスイッチ25の設定が前回の計算のときと異なっているときに゛丸め″が、それぞれ点灯するようになっている。
【0036】
また、表示窓9aの左上隅部には、検算中に、表示窓9aに表示されている数値に続いて入力された演算命令の記号(+、−、×、÷、=)を表示するための演算記号表示部24が設けられている。
【0037】
次に、上記構成の電子計算機1の動作について、図4〜図8のフローチャートと図9とを用いて説明する。
【0038】
「AC」キーが押された後、キー入力部5からデータが入力されると、置数キー/ファンクションキー処理ルーチン(図4、図5)において、まずF=0か否か、すなわち通常演算モードか検算モードかが判断される(ステップS1)。
【0039】
そして、F=0の場合には、その入力データが置数キーによる入力データであるか否かが判断され(ステップS2)、置数キーの場合には、その数値が表示レジスタ12に記憶されると同時に表示窓9aに表示される(ステップS3)。この置数キーによる入力操作が任意の回数繰り返されることにより任意の桁の数値(ただし8桁まで)が表示窓9aに表示される。
【0040】
そして、次に「+」や「−」などの四則演算命令キーが操作されると、入力された数値データ(5、6、3、2.1、など)と、演算命令データ(+、−、×、÷)と、そのときの丸め状態指定データ(F、C、5/4)と、桁指定データ(4、2、1、0、ADD2)とが、アドレスポインタPn(最初はPn=PO)で指定されているジャーナルメモリの領域16のレジスタの置数メモリの領域16a、ファンクションメモリの領域16b、丸め状態メモリの領域16c、および桁指定メモリの領域16dにそれぞれ記憶される(ステップS4)。
この演算操作が繰り返される度に、アドレスポインタPnが順次その次のアドレス指定Pn+1となり(ステップS5)、次々と計算処理、計算結果表示がなされる(ステップS6)。
そして、「=」キーが操作されると答が表示窓9aに表示される。
【0041】
次に、「検算」キー23が操作されると、検算キー処理ルーチン(図6)が実行され、まず表示窓9aのメッセージ表示領域に゛検算中″が表示される(ステップS17)。そして、アドレスポインタPnが初期のアドレス指定P0になった後、フラグFがF=1、すなわち検算モードになる(ステップS9、S10)。
【0042】
また、検算モードになっているときに「検算」キー23が操作されると、゛検算中″の表示が消去され(ステップS11)、通常演算モードにもどる(ステップS12)。
【0043】
検算モードでは、置数キー/ファンクションキー処理ルーチン(図4、図5)において、まずH=0か否か、すなわち訂正モードになっていないか否かが判断される(ステップS13)。
【0044】
そして、H=0のときにキー入力部5からデータが入力されると、その入力データが置数キーによる入力データであるか否かが判断され(ステップS14)、置数キーの場合には、その数値が表示レジスタ12に記憶されると同時に表示窓9aに表示される(ステップS15)。この置数キーによる入力操作が任意の回数繰り返されることにより任意の桁の値数(ただし8桁まで)が表示窓9aに表示される。
【0045】
次いで、演算命令キーが操作されると、入力された今回の数値/演算命令/丸め演算状態データと、Pnで指定されているジャーナルメモリの領域16のレジスタに記憶されている前回の数値/演算命令/丸め演算状態データとが比較される(ステップS16)。
【0046】
そして、今回の数値/演算命令/丸め演算状態データとジャーナルメモリの領域16に記憶されている前記の数値/演算命令/丸め演算状態データとが一致している場合には、アドレスポインタPnが順次その次のアドレス指定Pn+1となり(ステップS17)、計算処理、計算結果表示処理がなされる(ステップS18)。
【0047】
上記置数キーと演算命令キーの操作が繰り返えされる度に、入力された数値/演算命令/丸め演算状態データとPnで指定されたジャーナルメモリの領域16の各レジスタに記憶されている数値/演算命令/丸め演算状態データとが次々と比較され、一致している場合には、次々と計算処理、計算結果表示処理がなされる(ステップS16〜S18)。
【0048】
そして、「=」キーが操作されると計算が終了され(S19)、表示窓9aのメッセージ表示領域に、計算が正しかったことを示す゛OK″が表示される(ステップS20)。
【0049】
また、入力された数値/演算命令/丸め演算状態データと、Pnで指定されたジャーナルメモリの領域16のレジスタに記憶されている前回の数値/演算命令/丸め演算状態データとが一致しなかった場合、スピーカ9より警報音が発せられ(ステップS21)、一致しなかったデータが表示窓9aに点滅表示される(ステップS22)。
【0050】
その後、フラグHがH=1、すなわち訂正モードになり(ステップS23)、表示窓9aのメッセージ表示領域に゛今回″が表示される(ステップS24)。
【0051】
訂正モードでは、「確認」キーが押されると、「確認」キー処理ルーチン(図7)が実行される。「確認」キーの操作は、フラグFがF=1(検算モード)で且つフラグHがH=1(訂正モード)のときのみ有効であり、この「確認」キーが押される度に、前回入力された数値および演算命令記号と今回入力された数値および演算命令記号とが交互に表示されるとともに、゛前回″と゛今回″の表示体が交互に表示される(ステップS25〜S27)。
【0052】
そして、置数キーによって前回と同じ正しい入力がされた後に、演算命令キーによって前回と同じ正しい入力がされると(ステップS28、S29)、フラグHがH=0になり、訂正モードを終了させる(ステップS30)。
【0053】
上記訂正処理後、アドレスポインタPnがその次のアドレス指定Pn+1となった後(ステップS31)、計算処理、計算結果表示処理がなされる(ステップS32)。
その後、前記ステップS13〜S18と同様の処理を経て、前回と今回の全ての数値/演算命令/丸め演算状態データが一致していた場合、「=」キーが操作されると(ステップS20)、表示窓9aのメッセージ表示領域に゛OK″が表示される(ステップS24)。
【0054】
そして、「AC」キーが押されると、「AC」キー処理ルーチン(図8)が実行され、以上の通常演算並びに検算のデータが全て消去された後(ステップS33)、アドレスポインタPnが初期のアドレス指定P0に戻り(ステップS34)、通常演算の入力待ち状態になる。
【0055】
図9には、前記丸めスイッチ25および小数点指定スイッチ26の設定状態例と、前記キー入力部5におけるキー操作例と、そのときの前記表示窓9aの表示例とが示されている。図中(a)〜(c)は通常演算モードにおける演算例であり、(d)〜(g)は(a)〜(c)の操作に続いて行われた検算モードにおける演算例である。
【0056】
(a)においては、丸めスイッチ25をフリーモード゛F″に、小数点指定スイッチ26を2桁モード゛2″に設定した状態で、「5」キー、「+」キー、「6」キー、「÷」キーが順に操作された結果、表示窓9aに計算値゛11″が表示されている。また、表示窓9aの演算記号表示部24には、この時点で最後に操作された演算命令キーの演算記号゛÷″が表示されている。
【0057】
(b)においては、丸めスイッチ25をカットモード゛C″に切り換えた後、(a)の操作に続いて「3」キー、「÷」キーが順に操作された結果、小数点以下2桁未満を切り捨てた計算値゛3.66″と演算記号゛÷″とが表示されている。
【0058】
(c)においては、丸めスイッチ25を四捨五入モード゛5/4″に、小数点指定スイッチ26を1桁モード゛1″にそれぞれ切り換えて、(b)の操作に続いて「2」キー、「.」キー、「1」キーが順に操作された後、最後に「=」キーが操作されたことにより、演算結果を示す数値゛1.7″が表示されている(以上、前記ステップS1〜S6)。
【0059】
(d)においては、「検算」キー23が操作されたことにより表示窓9aのメッセージ表示領域に゛検算中″の表示が点灯し(前記ステップS7、S8)、その後前回と同じ「5」キー、「+」キー、「6」キー、「÷」キーが順に操作された結果、計算値゛11″が表示されている(前記ステップS13、S14、S16〜S18)。
【0060】
(e)においては、丸めスイッチ25は前回と同じカットモード゛C″に設定されているが、小数点指定スイッチ26が前回と異なる1桁モード゛1″に設定されたことにより、(d)の操作に続いて「3」キーが操作され、さらに「÷」キーが操作された時点で、スピーカ9から「ピピ」という報知音が一時的に発せられ、表示窓9aのメッセージ表示領域に゛丸め″の表示体が点滅表示されている(前記ステップS16、S21、S22)。
このように、前回と異なる丸め演算状態で演算操作が行われた時点で警報音を鳴らし、誤操作の内容を示す表示体を点滅表示させることにより、丸め演算状態の指定に誤りがあったことを入力者に直ちに告知できる。
【0061】
(f)においては、小数点指定スイッチ26が前回と同じ2桁モード゛2″に設定し直されたことにより、正しい計算値゛3.66″が表示されている。
【0062】
(g)においては、丸めスイッチ25を前回と同じ四捨五入モード゛5/4″に、小数点指定スイッチ26を前回と同じ1桁モード゛1″に切り換えた後、(f)の操作に続いて「2」キー、「.」キーまでは前回と同じキー操作がされたが、次に前回と異なる数字キー「2」キーが操作されたことにより、「=」キーが操作された時点で、スピーカ9から「ピピ」という警報音が一時的に発せられ、表示窓9aに今回誤って入力された数値゛2.2″が点滅表示されるとともに、メッセージ表示領域に゛今回″の表示体が表示されている(前記ステップS16、S21〜S24)。
【0063】
以上のように、前回のデータと一致しないデータを表示窓9aに点滅表示させることで、入力操作あるいは丸め演算状態の指定に誤りがあったことを入力者に確実に知らせることができ、またどのような誤りであったかを入力者に認識させることができる。
【0064】
また、本実施例の電子計算機1は、「確認」キーを押すことにより前回の数値および演算命令データと今回の数値および演算命令データとを表示窓9aに交互に表示できるようになっているので、前回の入力値を表示窓9a上で確認して即座に誤りを訂正することができる。
【0065】
なお、本発明の電子計算機は上記実施例の構成に限定されるものではない。
例えば、上記実施例では、小数点以下何桁まで求めるかを指定するための小数点指定スイッチ26と、小数点指定スイッチ26で指定された桁の下1桁を切り捨てるか四捨五入するかを指定するための丸めスイッチ25とを備えている場合について説明したが、小数点以下の一定の桁数まで求めるように桁数が固定された機種の場合は小数点指定スイッチ26は不要であることは言うまでもない。
【0066】
また、上記実施例では、「確認」キーを押すことにより前回の入力値と今回の入力値とを交互に表示できるようにしたが、検算中に誤入力があった場合、前回の入力値と今回の入力値とが一定時間毎に交互に自動表示されるようにしてもよい。
【0067】
【発明の効果】
以上要するに、本発明によれば以下のごとき優れた効果を発揮することができる。
【0068】
請求項1に記載された電子計算機によれば、入力者に音で演算式データ及び丸め指示状態の少なくとも一方の不一致を知らせるので、その後の無駄な入力操作を防止できるとともに、検出された不一致が丸め指示状態である際に、第2の報知手段が、丸め指示状態が一致していないことを示す表示を行うので、不一致が丸め指示状態であること入力者に表示にて知らせることができる。
【0069】
また、請求項2に記載された電子計算機によれば、演算手段によって導かれた演算結果に対して桁数指定、桁数指定で四捨五入、桁数指定無しのいずれの丸め状態で丸め処理を行うかを指定できる。
【0070】
また、請求項3に記載された電子計算機によれば、演算手段によって導かれた演算結果の小数点以下の桁数を指定し、さらに指定された桁数以下を切捨又は四捨五入のいずれの丸め状態で丸め処理を行うかを指定できる。
【0071】
また、請求項4に記載された電子計算機によれば、新たに演算命令データが入力される毎にそのときの丸め指示の状態と、前回その演算命令データが入力された時における丸め指示の状態との一致が検出され、一致しないときには直ちに報知がなされるので、その後の無駄な入力操作を防止し、操作性を向上できる。
【図面の簡単な説明】
【図1】本発明の一実施例の電子計算機の基本構成を示す回路構成図である。
【図2】上記実施例の電子計算機のメモリ領域の構成を示す図である。
【図3】上記実施例の電子計算機の外観を示す平面図である。
【図4】上記実施例の電子計算機の動作を説明するためのフローチャート(置数キー/ファンクションキー処理ルーチン)である。
【図5】上記実施例の電子計算機の動作を説明するためのフローチャート(置数キー/ファンクションキー処理ルーチン)である。
【図6】上記実施例の電子計算機の動作を説明するためのフローチャート(検算キー処理ルーチン)である。
【図7】 上記実施例の電子計算機の動作を説明するためのフローチャート(「確認」キー処理ルーチン)である。
【図8】上記実施例の電子計算機の動作を説明するためのフローチャート(「AC」キー処理ルーチン)である。
【図9】上記実施例の電子計算機の丸めスイッチおよび小数点指定スイッチの設定状態例と、キー入力部におけるキー操作例と、そのときの前記表示窓の表示例とを対応させて示した図である。
【符号の説明】
1 電子計算機
2 中央演算処理装置(CPU、演算手段、丸め処理手段、検出手段、報知手段)
3 読み出し専用メモリ(ROM、記憶手段)
4 随時書き込み読み出しメモリ(RAM)
5 キー入力部(入力手段)
6 桁数入力部
7 演算条件入力部
8 表示駆動回路
9 表示部(表示手段、報知手段)
9a 表示窓(表示手段)
10 増幅回路
11 スピーカ(報知手段)
12 表示レジスタの領域(置数入力レジスタの領域)
13 演算用レジスタの領域
16 ジャーナルメモリの領域(記憶手段)
18 操作面
19 置数キー群
20 演算命令キー群
21 命令キー群
23 検算キー
24 演算記号表示部
25 丸めスイッチ(丸め指示手段、切捨指定手段)
26 小数点指定スイッチ(丸め指示手段、桁数指定手段)
[0001]
[Industrial application fields]
The present invention relates to an electronic computer having a verification function.
[0002]
[Prior art]
Some electronic calculators such as calculators have a check function. This type of electronic computer stores the key input operation and calculation result of the first calculation, and compares the key input operation and calculation result performed for the second time with the key input operation and calculation result of the first calculation. However, if there is a difference, an error is notified by a warning sound or the like.
[0003]
[Problems to be solved by the invention]
However, in the above-described conventional electronic computer, it is determined whether or not the calculation is correct by comparing the first and second key input operations and the calculation results. Or, even if the setting of the rounding switch for specifying whether to round off or round off the last digit of the designated digit is different between the first time and the second time, the input person does not know until the answer is given. Therefore, if the answer is different between the first time and the second time, you must operate the digit number specification switch and rounding switch to reset the rounding calculation state and then start the second input operation from the beginning. There was a problem that the operability was poor.
[0004]
The object of the present invention is to solve the above-mentioned drawbacks of the prior art, and when the rounding state in the second calculation is different from that in the first calculation, this is immediately notified to the input person and the subsequent useless key input An object is to provide an electronic computer with good operability that can prevent operation.
[0005]
[Means for Solving the Problems]
  In order to achieve the above object, an electronic computer of the present invention provides:
  A series of data entered in normal calculation modeIncludes numeric and arithmetic instructionsIn an electronic computer having a verification function for storing arithmetic expression data and performing verification by comparing the arithmetic expression data newly input in the verification mode with the stored arithmetic expression data,
  Input means for inputting arithmetic expression data;
  A calculation means for executing a calculation based on the calculation formula data input by the input means in the normal calculation mode;
  Rounding instruction means for instructing rounding of the operation by the calculating means;
  Rounding means for rounding the calculation result by the calculation means by rounding specified by the rounding instruction means;
  Storage means for storing the rounding instruction state of the rounding instruction means in correspondence with the arithmetic expression data input by the input means;
  After switching from the normal calculation mode to the verification mode, the newly input calculation formula data and the state of the rounding instruction means at that time are matched with the calculation formula data stored in the storage means and the rounding instruction status. Detecting means for detecting;
  When it is detected by this detection means that at least one of the arithmetic expression data and the rounding instruction state does not match.Announcement of discrepancyFirst informing means for performing,
  By the detection meansWhen it is detected that at least one of them does not match, the detected mismatch is a rounding indication state.Check that the rounding instruction states do not match.DisplaySecond informing means for performing
  (Claim 1).
[0006]
  In the electronic computer of the present invention
  The rounding instruction meansSaidSpecify either the number of digits specified, the number of digits rounded off, or the number of digits not specified for the calculation result derived by the calculation means.Equipped with meansIt is desirable (Claim 2).
[0007]
  Also,SaidRounding instruction meansIs
  SaidA digit number specifying means for specifying the number of digits after the decimal point for the calculation result derived by the calculating means;
  A truncation designation means for instructing rounding or rounding to the number of digits below the decimal point designated by the digit number designation means;,
HasIt is desirable (Claim 3).
[0008]
  Further, the storage means stores the state of the rounding instruction by the rounding instruction means for each arithmetic instruction data (+, −, ×, ÷) included in the arithmetic expression data input by the input means.Means to
  Each time the operation instruction data in the newly input arithmetic expression data is input, the detection means is the arithmetic expression data, the state of the rounding instruction means at that time, the arithmetic expression data stored in the storage means and the rounding instruction A match with the state ofEquipped with means(Claim 4).
[0011]
[Action]
  In the electronic computer according to claim 1, the input means in the normal operation mode.Includes a series of numerical values and operation instructionsWhen the arithmetic expression data is input, the arithmetic means executes an operation based on the input arithmetic expression data. When the rounding instruction means gives a rounding instruction for the calculation by the calculation means, the calculation result by the calculation means is rounded by the rounding means by the rounding designated by the rounding instruction means. At that time, the rounding instruction state of the rounding instruction means and the arithmetic expression data input by the input means are stored in the storage means in association with each other. Then, after switching from the normal calculation mode to the verification mode, the newly input calculation formula data and the state of the rounding instruction means at that time match the calculation formula data stored in the storage means and the rounding instruction status. Is detected by the detecting means, and it is detected that at least one of the arithmetic expression data and the rounding instruction state does not match.By soundBy the first notification meansThere is a report sound indicating that there is a discrepancy.Made. Also, by the detection meansWhen it is detected that at least one of them does not match, when the detected mismatch is in the rounding instruction state, the second notification means indicates that the rounding instruction state does not matchIs done.
  Therefore,A sound to the input personNotifying the mismatch of at least one of the calculation formula data and the rounding instruction statusSubsequent useless input operations can be preventedAnd the detected discrepancy is in the rounding indication state.The second notifying means gives a rounding instruction.Since the display indicating that the states do not match is performed, it is possible to notify the input person that the mismatch is in the rounding instruction state.
[0012]
In addition, according to the electronic computer described in claim 2, the calculation result derived by the calculation means is rounded in any rounding state in which the number of digits is specified, the number of digits is rounded off, or the number of digits is not specified. Can be specified by the rounding instruction means.
[0013]
According to the electronic computer described in claim 3, the number of digits after the decimal point of the calculation result derived by the calculation means is designated by the digit number designation means, and the calculation result is designated by the digit number designation means. The rounding specification means can specify whether rounding is performed in a rounding state of rounding off or rounding off to a specified number of digits so that the number of digits after the decimal point is obtained.
[0014]
Further, in the electronic computer according to claim 4, the state of the rounding instruction by the rounding instruction means is stored for each arithmetic instruction data (+, −, ×, ÷) included in the arithmetic expression data inputted by the input means. Is remembered. Each time the operation instruction data in the newly input arithmetic expression data is input, the arithmetic expression data and the state of the rounding instruction means at that time, the arithmetic expression data stored in the storage means and the state of the rounding instruction Is detected by the detecting means.
Therefore, whenever a new operation instruction data is input, a match between the rounding instruction state at that time and the rounding instruction state at the previous time when the operation instruction data was input is detected. Done.
[0017]
【Example】
An embodiment of the electronic computer according to the present invention will be described below.
[0018]
FIG. 1 is a block diagram showing the basic configuration of the electronic computer of this embodiment.
[0019]
The computer 1 shown in FIG. 1 includes a central processing unit (CPU) 2 that controls the entire computer 1 in accordance with program instructions, a read-only memory (ROM) 3 that stores a microprogram to be processed by the CPU 2, data As needed, read / write memory (RAM) 4, key input unit 5 for inputting data and switching modes to be described later, digit number input unit 6 for specifying the number of digits after the decimal point, digit An arithmetic condition input unit 7 for designating whether the last digit of the digit designated by the number input unit 6 is rounded off or truncated, and a display driving circuit for displaying numerical data and various message data output from the CPU 2 8 and a display unit 9, and an amplifier circuit 10 and a speaker 11 for amplifying and emitting a notification sound signal output from the CPU 2.
[0020]
As shown in FIG. 2, the RAM 4 temporarily stores a display register area (also serving as an input register area) 12 for storing data to be displayed on the display unit 7 and a numerical value for the CPU 2 to calculate. A calculation register area 13, a memory register area 14 for temporarily storing calculation results, and a flag register area 15 for storing the contents of table flags F and H for various conditions during program execution.
[0021]
The contents of each flag are as follows.
F = 0 Normal calculation mode
F = 1 Check mode
H = 1 Correction mode
H = 0 Cancel correction mode
[0022]
The RAM 4 has a journal memory area 16 for temporarily storing the input contents from the key input unit 5 and an area 17 for storing an address pointer Pn for designating each register of the journal memory area 16.
[0023]
The journal memory area 16 includes a numerical memory area 16a for storing input numerical values, a function memory area 16b for storing input arithmetic instructions (+,-, X, ÷, =), and calculation conditions. The rounding state memory area 16c for storing the rounding state designation data (F, C, 5/4) designated by the input unit 7 and the digit designation data (4, 2, 1,. 0, ADD2) and a digit designation memory area 16d. Each time an input for calculation is made from the key input unit 5, numerical data, calculation instruction data input immediately after that, and rounding calculation status data at that time (rounding status designation data, digit designation data) Are sequentially stored in the register of the area 16 of the journal memory designated by the address pointers P0, P1, P2, P3,.
[0024]
As shown in FIG. 3, the key input unit 5 includes a numeric key group 19, an operation command key group 20, an instruction key group 21, a memory key group 22, and a memory key group 22 arranged on the operation surface 18 of the electronic computer 1. A verification key 23 is provided.
[0025]
The numeric key group 19 includes number keys “0” to “9” for inputting numerical values from 0 to 9, respectively, and a decimal point key “.” For inputting a decimal point.
[0026]
The operation instruction key group 20 includes four operation instruction keys “+”, “−”, “×”, “÷” for inputting four operation instructions, and an equal key “=” for obtaining an answer. .
[0027]
The command key group 21 includes a plus / minus key “+/−” for switching the sign of the displayed numerical value, a percent key “%” for switching to percentage calculation, and the previous calculation result and the current calculation in the verification mode. Confirmation key “confirmation” for alternately displaying the results, clear key “C” for correcting the wrong numerical value (numerical value correction), and all the calculation data so far are erased (initialization). It consists of all clear key “AC”.
[0028]
The memory key group 22 is used to add the displayed numerical value to the numerical value stored in the memory register (input with a positive numerical value) and “M +” for subtraction (input with a negative numerical value). Memory minus key “M−”, memory recall key “MR” for recalling the value stored in the memory register, and recalling the value stored in the memory register and simultaneously erasing the memory contents Memory recall clear key “MC”.
[0029]
The verification key “verification” 23 is an instruction key for alternately switching between the standard calculation mode and the verification mode.
[0030]
The operation surface 18 of the electronic computer 1 is provided with a decimal point designation switch 26 that is an operation unit of the digit number input unit 6 and a rounding switch 25 that is an operation unit of the calculation condition input unit 7.
[0031]
The rounding switch 25 is a switch for designating how to process the fractional part. The rounding switch 25 is a free mode "F" for obtaining the fractional part as freely as possible, and the digit 1 specified by the decimal point designation switch 26. Either a cut mode “C” for truncating digits or a rounding mode “5/4” for rounding off can be designated.
[0032]
The decimal point designation switch 26 is a switch that is effective when the rounding switch 25 is set to the cut mode “C” or the rounding mode “5/4”. Any one of a 1-digit mode “1” for obtaining 1 digit, a 2-digit mode “2” for obtaining 2 digits after the decimal point, and a 4-digit mode “4” for obtaining 4 digits after the decimal point can be designated.
The decimal point designation switch 26 can also designate a fixed point mode “ADD2” for automatically inserting a decimal point in the second digit without pressing the “.” Key.
[0033]
The display unit 7 is composed of a well-known liquid crystal display. When numerical data or various message data output from the CPU 2 is input to the display drive circuit 6, the display drive circuit 6 is driven by the display drive circuit 6, and FIG. As shown in FIG. 9, numerical data such as numbers and answers, various message data, and the like are displayed on the display window 9a.
[0034]
The display window 9a is provided above the input keys on the operation surface 18 as shown in FIG. The display window 9a can display numerical values up to 8 digits. On the left side of the numerical value display area, "M" is displayed when a numerical value is stored in the memory register of the RAM 4, "K" is displayed during constant calculation, and "E" when there is an input error such as dividing a certain number by 0. Are lit up.
[0035]
The upper area of the numerical display area is a message display area such as “Checking”, “OK”, “Previous”, “This time”, “Rounding”, etc. ”Is“ OK ”when the calculation is correct as a result of the verification, and“ Previous ”is the current (verification mode) when the displayed numerical value is the previous (normal calculation mode). When “current” is different from the previous calculation in the settings of the decimal point designation switch 26 and the round switch 25, “rounding” is lit.
[0036]
In addition, in the upper left corner of the display window 9a, a symbol (+, −, ×, ÷, =) of an operation instruction input following the numerical value displayed in the display window 9a is displayed during verification. The operation symbol display section 24 is provided.
[0037]
Next, the operation of the electronic computer 1 configured as described above will be described with reference to the flowcharts of FIGS. 4 to 8 and FIG.
[0038]
When data is input from the key input unit 5 after the “AC” key is pressed, in the numeric key / function key processing routine (FIGS. 4 and 5), first, whether F = 0, that is, normal calculation It is determined whether the mode or the verification mode (step S1).
[0039]
If F = 0, it is determined whether or not the input data is input data using a numeric key (step S2). If it is a numeric key, the numerical value is stored in the display register 12. At the same time, it is displayed on the display window 9a (step S3). By repeating the input operation using this numeric key any number of times, an arbitrary digit value (up to 8 digits) is displayed on the display window 9a.
[0040]
Next, when the four arithmetic operation command keys such as “+” and “−” are operated, the input numerical data (5, 6, 3, 2.1, etc.) and the operation command data (+, − , X, ÷), rounding state designation data (F, C, 5/4) and digit designation data (4, 2, 1, 0, ADD2) at that time are address pointer Pn (initially Pn = Stored in the register memory area 16a, function memory area 16b, rounding state memory area 16c, and digit designation memory area 16d of the journal memory area 16 specified by PO) (step S4). ).
Each time this calculation operation is repeated, the address pointer Pn sequentially becomes the next address designation Pn + 1 (step S5), and calculation processing and calculation results are displayed one after another (step S6).
When the “=” key is operated, the answer is displayed on the display window 9a.
[0041]
Next, when the “verification” key 23 is operated, the verification key processing routine (FIG. 6) is executed, and “verification” is first displayed in the message display area of the display window 9a (step S17). After the address pointer Pn becomes the initial address specification P0, the flag F is F = 1, that is, the verification mode is set (steps S9 and S10).
[0042]
Further, when the “verification” key 23 is operated in the verification mode, the “verification” display is deleted (step S11), and the normal calculation mode is restored (step S12).
[0043]
In the verification mode, in the numeric key / function key processing routine (FIGS. 4 and 5), it is first determined whether or not H = 0, that is, whether or not the correction mode is set (step S13).
[0044]
When data is input from the key input unit 5 when H = 0, it is determined whether or not the input data is input data using a numeric key (step S14). The numerical value is stored in the display register 12 and simultaneously displayed on the display window 9a (step S15). By repeating this input operation using the numeric keys, an arbitrary number of digits (up to 8 digits) is displayed on the display window 9a.
[0045]
Next, when the operation instruction key is operated, the current numerical value / operation instruction / rounding operation state data that has been input and the previous numerical value / operation stored in the register of the area 16 of the journal memory specified by Pn. The instruction / rounding operation state data is compared (step S16).
[0046]
When the current numerical value / arithmetic instruction / rounding arithmetic state data and the numerical value / arithmetic instruction / rounding arithmetic state data stored in the journal memory area 16 match, the address pointer Pn is sequentially set. The next address designation Pn + 1 is obtained (step S17), and calculation processing and calculation result display processing are performed (step S18).
[0047]
Each time the operation of the numeric key and the operation instruction key is repeated, the input numerical value / operation instruction / rounding operation state data and the numerical value stored in each register of the area 16 of the journal memory designated by Pn / Operation instruction / rounding operation state data are compared one after another, and if they match, calculation processing and calculation result display processing are performed one after another (steps S16 to S18).
[0048]
When the “=” key is operated, the calculation is terminated (S19), and “OK” indicating that the calculation is correct is displayed in the message display area of the display window 9a (step S20).
[0049]
Also, the input numerical value / arithmetic instruction / rounding arithmetic state data did not match the previous numerical value / arithmetic instruction / rounding arithmetic state data stored in the register of the journal memory area 16 specified by Pn. In this case, an alarm sound is emitted from the speaker 9 (step S21), and the data that does not match is displayed blinking on the display window 9a (step S22).
[0050]
Thereafter, the flag H becomes H = 1, that is, the correction mode is set (step S23), and “current” is displayed in the message display area of the display window 9a (step S24).
[0051]
In the correction mode, when the “confirm” key is pressed, the “confirm” key processing routine (FIG. 7) is executed. The operation of the “confirm” key is valid only when the flag F is F = 1 (verification mode) and the flag H is H = 1 (correction mode). Each time the “confirm” key is pressed, The numerical values and operation command symbols inputted this time and the numerical values and operation command symbols inputted this time are displayed alternately, and the display bodies of “previous” and “current time” are displayed alternately (steps S25 to S27).
[0052]
When the same correct input as the previous time is input by the numeric key and then the same correct input as the previous time is input by the operation command key (steps S28 and S29), the flag H becomes H = 0 and the correction mode is ended. (Step S30).
[0053]
After the correction process, the address pointer Pn becomes the next address designation Pn + 1 (step S31), and then the calculation process and the calculation result display process are performed (step S32).
Thereafter, through the same processing as in steps S13 to S18, when all the numerical values / arithmetic instructions / rounding calculation state data of the previous time and the current time coincide, the “=” key is operated (step S20). “OK” is displayed in the message display area of the display window 9a (step S24).
[0054]
When the “AC” key is pressed, the “AC” key processing routine (FIG. 8) is executed, and after all of the above normal calculation and verification data are erased (step S33), the address pointer Pn is initialized. Returning to the address designation P0 (step S34), the system enters a normal calculation input waiting state.
[0055]
FIG. 9 shows a setting state example of the rounding switch 25 and the decimal point designation switch 26, a key operation example in the key input unit 5, and a display example of the display window 9a at that time. In the figure, (a) to (c) are calculation examples in the normal calculation mode, and (d) to (g) are calculation examples in the check mode performed following the operations (a) to (c).
[0056]
In (a), with the rounding switch 25 set to the free mode “F” and the decimal point designation switch 26 set to the two-digit mode “2”, the “5” key, “+” key, “6” key, “ As a result of sequentially operating the “÷” key, the calculated value “11” is displayed on the display window 9a. Also, the operation symbol display section 24 of the display window 9a has the operation instruction key operated last at this time. The operation symbol “÷” is displayed.
[0057]
In (b), after the rounding switch 25 is switched to the cut mode “C”, the “3” key and the “÷” key are sequentially operated following the operation in (a). The truncated calculation value “3.66” and the operation symbol “÷” are displayed.
[0058]
In (c), the rounding switch 25 is switched to the rounding mode “5/4” and the decimal point designating switch 26 is switched to the one-digit mode “1”, and the “2” key, “. ”Key and“ 1 ”key are operated in order, and then the“ = ”key is operated last, so that the numerical value“ 1.7 ”indicating the calculation result is displayed (the above steps S1 to S6). ).
[0059]
In (d), “verification” is displayed in the message display area of the display window 9a when the “verification” key 23 is operated (steps S7 and S8), and then the same “5” key as before. As a result of operating the “+” key, “6” key, and “÷” key in sequence, the calculated value “11” is displayed (steps S13, S14, S16 to S18).
[0060]
In (e), the rounding switch 25 is set to the same cut mode “C” as the previous time. However, as the decimal point designation switch 26 is set to the one-digit mode “1” different from the previous time, When the “3” key is operated following the operation and the “÷” key is further operated, a notification sound “pipi” is temporarily emitted from the speaker 9 and rounded to the message display area of the display window 9a. "" Is displayed blinking (steps S16, S21, S22).
In this way, when a calculation operation is performed in a different rounding calculation state from the previous time, an alarm sound is sounded, and a display indicating the content of the erroneous operation blinks to indicate that there is an error in the specification of the rounding calculation state. Can immediately notify the input person.
[0061]
In (f), since the decimal point designation switch 26 is reset to the same two-digit mode “2” as the previous time, the correct calculated value “3.66” is displayed.
[0062]
In (g), after the rounding switch 25 is switched to the same rounding mode “5/4” as in the previous time and the decimal point designation switch 26 is switched to the same one-digit mode “1” as in the previous time, the operation “f” is followed by “ Up to the “2” key and “.” Key, the same key operation was performed as before, but when the “=” key is operated due to the next operation of the numeric key “2” key different from the previous one, the speaker No. 9 “pipi” alarm sound is temporarily emitted, and the numerical value “2.2” that has been erroneously input this time flashes in the display window 9a, and the “current” indicator is displayed in the message display area. (Steps S16, S21 to S24).
[0063]
As described above, by blinking data that does not match the previous data in the display window 9a, it is possible to reliably notify the input person that there is an error in the input operation or the specification of the rounding operation state. It is possible to make the input person recognize whether such an error has occurred.
[0064]
Further, the electronic computer 1 of the present embodiment can alternately display the previous numerical value and operation instruction data and the current numerical value and operation instruction data on the display window 9a by pressing the “confirm” key. The previous input value can be confirmed on the display window 9a and the error can be immediately corrected.
[0065]
The electronic computer of the present invention is not limited to the configuration of the above embodiment.
For example, in the above embodiment, the decimal point designation switch 26 for designating how many digits after the decimal point are to be determined, and the rounding for designating whether the last one digit specified by the decimal point designation switch 26 is rounded off or rounded off. Although the case where the switch 25 is provided has been described, it goes without saying that the decimal point designation switch 26 is unnecessary in the case of a model in which the number of digits is fixed so as to obtain a certain number of digits after the decimal point.
[0066]
In the above embodiment, the previous input value and the current input value can be displayed alternately by pressing the “confirm” key, but if there is an incorrect input during the verification, the previous input value and The current input value may be automatically displayed alternately every predetermined time.
[0067]
【The invention's effect】
In short, according to the present invention, the following excellent effects can be exhibited.
[0068]
  According to the electronic computer described in claim 1, the input person is sounded.Notifying the mismatch of at least one of the calculation formula data and the rounding instruction statusSubsequent useless input operations can be preventedAnd the detected discrepancy is in the rounding indication state.The second notifying means gives a rounding instruction.Since the display indicating that the states do not match is performed, it is possible to notify the input person that the mismatch is in the rounding instruction state.
[0069]
In addition, according to the electronic computer described in claim 2, the calculation result derived by the calculation means is rounded in any rounding state in which the number of digits is specified, the number of digits is rounded off, or the number of digits is not specified. Can be specified.
[0070]
In addition, according to the electronic computer according to claim 3, the number of digits after the decimal point of the calculation result derived by the calculation means is specified, and the rounding state of either rounding off or rounding off the specified number of digits or less is specified. You can specify whether to perform rounding with.
[0071]
In addition, according to the electronic computer described in claim 4, every time operation instruction data is newly input, the state of rounding instruction at that time and the state of rounding instruction when the operation instruction data is input last time Is detected, and when it does not match, a notification is made immediately, so that it is possible to prevent a subsequent useless input operation and improve operability.
[Brief description of the drawings]
FIG. 1 is a circuit configuration diagram showing a basic configuration of an electronic computer according to an embodiment of the present invention.
FIG. 2 is a diagram showing a configuration of a memory area of the electronic computer according to the embodiment.
FIG. 3 is a plan view showing an external appearance of the electronic computer according to the embodiment.
FIG. 4 is a flowchart (numerical key / function key processing routine) for explaining the operation of the electronic computer of the embodiment.
FIG. 5 is a flowchart (numerical key / function key processing routine) for explaining the operation of the electronic computer of the embodiment.
FIG. 6 is a flowchart (validation key processing routine) for explaining the operation of the electronic computer of the embodiment.
FIG. 7 is a flowchart (“confirmation” key processing routine) for explaining the operation of the electronic computer of the embodiment.
FIG. 8 is a flowchart (“AC” key processing routine) for explaining the operation of the electronic computer of the embodiment.
9 is a diagram showing a setting state example of a rounding switch and a decimal point designation switch of the electronic computer according to the embodiment, an example of key operation in a key input unit, and a display example of the display window at that time. FIG. is there.
[Explanation of symbols]
1 Electronic computer
2 Central processing unit (CPU, calculation means, rounding processing means, detection means, notification means)
3 Read-only memory (ROM, storage means)
4 Anytime write / read memory (RAM)
5 Key input part (input means)
6 digit number input part
7 Calculation condition input section
8 Display drive circuit
9 Display section (display means, notification means)
9a Display window (display means)
10 Amplifier circuit
11 Speaker (notification means)
12 Display register area (Register input register area)
13 Operation register area
16 Journal memory area (storage means)
18 Operation surface
19 numeric keys
20 Operation instruction key group
21 Command keys
23 Check key
24 Operation symbol display
25 Rounding switch (rounding instruction means, cutoff designation means)
26 Decimal point designation switch (rounding instruction means, number of digits designation means)

Claims (4)

通常演算モードで入力された一連の数値及び演算命令を含む演算式データを記憶し、検算モードで新たに入力された演算式データと前記記憶された演算式データとを比較することで検算を行う検算機能を備えた電子計算機において、
演算式データを入力する入力手段と、
通常演算モードでこの入力手段により入力された演算式データに基づいて演算を実行する演算手段と、
この演算手段による演算の丸めを指示する丸め指示手段と、
この丸め指示手段によって指定された丸めで前記演算手段による演算結果を丸める丸め処理手段と、
前記丸め指示手段の丸め指示の状態と前記入力手段により入力された演算式データとを対応させて記憶する記憶手段と、
通常演算モードから検算モードに切り換えられた後、新たに入力された演算式データとその時の丸め指示手段の状態と、前記記憶手段に記憶されている演算式データと丸め指示の状態との一致を検出する検出手段と、
この検出手段により演算式データ及び丸め指示状態の少なくとも一方が一致していないと検出された際に不一致であることを示す報音を行う第1の報知手段と、
前記検出手段により少なくとも一方が一致していないと検出された場合において、この検出された不一致が丸め指示状態である際に、丸め指示状態が一致していないことを示す表示を行う第2の報知手段と、
を備えたことを特徴とする電子計算機。
Stores arithmetic expression data including a series of numerical values and arithmetic instructions input in the normal arithmetic mode, and performs verification by comparing the arithmetic expression data newly input in the verification mode with the stored arithmetic expression data. In an electronic computer with a check function,
Input means for inputting arithmetic expression data;
A calculation means for executing a calculation based on the calculation formula data input by the input means in the normal calculation mode;
Rounding instruction means for instructing rounding of operation by the calculating means;
Rounding means for rounding the calculation result by the calculation means by rounding specified by the rounding instruction means;
Storage means for storing the rounding instruction state of the rounding instruction means in correspondence with the arithmetic expression data input by the input means;
After switching from the normal calculation mode to the verification mode, the newly input calculation formula data and the state of the rounding instruction means at that time are matched with the calculation formula data stored in the storage means and the rounding instruction status. Detecting means for detecting;
First notifying means for performing a sound indicating that there is a mismatch when it is detected by this detecting means that at least one of the arithmetic expression data and the rounding instruction state does not match;
When the detection means detects that at least one of them does not match, a second notification that displays that the rounding instruction state does not match when the detected mismatch is the rounding instruction state Means,
An electronic computer characterized by comprising:
前記丸め指示手段は前記演算手段によって導かれた演算結果について桁数指定、桁数指定で四捨五入、桁数指定無しのいずれかを指定する手段を備えていることを特徴とする請求項1記載の電子計算機。  2. The rounding instruction means comprises means for designating one of digit designation, rounding by digit designation, and no digit designation for the calculation result derived by the calculation means. Electronic computer. 前記丸め指示手段は、
前記演算手段によって導かれた演算結果について小数点以下の桁数を指定する桁数指定手段と、
この桁数指定手段によって指定された小数点以下の桁数となるように指定された桁数以下の切捨又は四捨五入を指示する切捨指定手段と、
を備えていることを特徴とする請求項1記載の電子計算機。
The rounding instruction means includes
A digit number designating unit for designating the number of digits after the decimal point for the calculation result derived by the calculating unit;
A truncation specifying means for instructing rounding or rounding to the number of digits less than or equal to the number of digits specified by the number of digits specifying means;
The electronic computer according to claim 1, further comprising:
前記記憶手段は前記入力手段により入力される演算式データに含まれる演算命令データ(+、−、×、÷)毎に前記丸め指示手段による丸め指示の状態を記憶する手段を備え、
前記検出手段は新たに入力される演算式データ中の演算命令データが入力される毎に演算式データとその時の丸め指示手段の状態と、前記記憶手段に記憶されている演算式データと丸め指示の状態との一致を検出する手段を備えていることを特徴とする請求項1、2又は3記載の電子計算機。
The storage means includes means for storing the state of the rounding instruction by the rounding instruction means for each arithmetic instruction data (+, −, ×, ÷) included in the arithmetic expression data input by the input means,
The detecting means each time arithmetic instruction data in newly inputted arithmetic expression data is inputted, the arithmetic expression data, the state of the rounding instruction means at that time, the arithmetic expression data stored in the storage means and the rounding instruction 4. The electronic computer according to claim 1, further comprising means for detecting a coincidence with the state.
JP05649095A 1994-12-01 1995-02-20 Electronic computer Expired - Fee Related JP3693262B2 (en)

Priority Applications (10)

Application Number Priority Date Filing Date Title
JP05649095A JP3693262B2 (en) 1995-02-20 1995-02-20 Electronic computer
TW084105503A TW283223B (en) 1994-12-01 1995-05-31
US08/560,894 US5870318A (en) 1994-12-01 1995-11-20 Computers with a proof function
EP95118484A EP0715263B1 (en) 1994-12-01 1995-11-23 Computer with a proof function
DE69530461T DE69530461T2 (en) 1994-12-01 1995-11-23 Calculator with test function
MYPI95003626A MY113894A (en) 1994-12-01 1995-11-25 "computers with a proof function"
KR1019950045768A KR100246519B1 (en) 1994-12-01 1995-11-30 Computer with a proof function
CN95117574A CN1095131C (en) 1994-12-01 1995-12-01 Computers with a proof function
US08/940,614 US6026449A (en) 1995-02-14 1997-09-30 Computers with a proof function
HK98114753A HK1013471A1 (en) 1994-12-01 1998-12-22 Computer with a proof function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05649095A JP3693262B2 (en) 1995-02-20 1995-02-20 Electronic computer

Publications (2)

Publication Number Publication Date
JPH08227400A JPH08227400A (en) 1996-09-03
JP3693262B2 true JP3693262B2 (en) 2005-09-07

Family

ID=13028543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05649095A Expired - Fee Related JP3693262B2 (en) 1994-12-01 1995-02-20 Electronic computer

Country Status (1)

Country Link
JP (1) JP3693262B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005173735A (en) * 2003-12-08 2005-06-30 Sap Ag Purchase request support device, method, and program
JP6515613B2 (en) * 2015-03-19 2019-05-22 カシオ計算機株式会社 Electronic equipment, calculation processing program

Also Published As

Publication number Publication date
JPH08227400A (en) 1996-09-03

Similar Documents

Publication Publication Date Title
JP3637520B2 (en) Desktop addition / subtraction / division / division calculator for easy verification and steady calculation
JP3693262B2 (en) Electronic computer
KR100246519B1 (en) Computer with a proof function
JP3508277B2 (en) Electronic computer
US5886910A (en) Computer with a check function
JP3786141B2 (en) Electronic computer and verification control method
JP3557645B2 (en) Electronic computer
JPH08221368A (en) Electronic computer
US6026449A (en) Computers with a proof function
CA1173164A (en) Fraction calculator
JPH1049502A (en) Checking device
JPH08241285A (en) Electronic computer
JPH0916525A (en) Electronic computer with check function
JP6515613B2 (en) Electronic equipment, calculation processing program
JPH08161270A (en) Electronic computer
JPH01147649A (en) Method for discriminating propriety of back-up memory
JP2005346555A (en) Electronic apparatus
JPH1049501A (en) Checking device
JPH04115351A (en) Compact electronic apparatus with voltage drop alarming function
JPS6210828Y2 (en)
JPH06168104A (en) Electronic computer
JPH09146890A (en) Electronic computer
JPH01193918A (en) Error message display system
JP2530478Y2 (en) Time recorder with check-in / out sequence function
JPS6286406A (en) Programmable controller

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040204

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20040209

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20040409

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050617

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090701

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100701

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110701

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110701

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120701

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120701

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130701

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees