JP3817937B2 - Computing device and storage medium - Google Patents

Computing device and storage medium Download PDF

Info

Publication number
JP3817937B2
JP3817937B2 JP29574498A JP29574498A JP3817937B2 JP 3817937 B2 JP3817937 B2 JP 3817937B2 JP 29574498 A JP29574498 A JP 29574498A JP 29574498 A JP29574498 A JP 29574498A JP 3817937 B2 JP3817937 B2 JP 3817937B2
Authority
JP
Japan
Prior art keywords
decimal
input
cyclic
cpu
user
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
JP29574498A
Other languages
Japanese (ja)
Other versions
JP2000122978A (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 JP29574498A priority Critical patent/JP3817937B2/en
Publication of JP2000122978A publication Critical patent/JP2000122978A/en
Application granted granted Critical
Publication of JP3817937B2 publication Critical patent/JP3817937B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Calculators And Similar Devices (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、計算装置に係り、詳細には、循環小数を入力/表示する計算装置に関する。
【0002】
【従来の技術】
従来の計算装置において、既に、小数を入力したり、また、入力された小数を表示部に表示することができる計算装置は存在する。
また、小数を分数に変換することのできる計算装置も存在する。
【0003】
【発明が解決しようとする課題】
しかしながら、従来の計算装置では、循環小数を入力したり、また循環小数を表示部に表示することができるものはなかった。
さらに、入力された小数を分数に変換する場合、計算装置の内部演算桁数が限られているため、分数に変換できる小数の桁数には限度があり、特に循環小数を分数に変換することに関して難があった。
【0004】
本発明の課題は、循環小数の入力及び表示が可能な計算装置を提供するとともに、循環小数を入力及び表示するためのプログラムを記憶した記憶媒体を提供することである。
【0005】
【課題を解決するための手段】
本発明にかかる計算装置は、ユーザに数値データとして小数を入力させる数値入力手段と、前記数値入力手段により入力された小数を表示する表示手段と、前記表示手段により表示された小数の数字の1つをカーソルの桁移動操作によってユーザに指定させる指定手段と、前記表示手段で表示された小数のうち前記指定手段により指定された数字から最終桁の数字までを循環小数の循環節として認識する認識手段と、前記表示手段で表示された小数に対して、前記指定手段により指定された数字と最終桁の数字に循環小数符号を付加して表示する符号表示手段とを備えたことを特徴とする。
【0006】
また、本発明にかかる記憶媒体は、循環小数を表示部に表示する制御にかかわるコンピュータが実行可能なプログラムを格納した記憶媒体であって、コンピュータを、ユーザに数値データとして小数を入力させる数値入力手段、前記数値入力手段により入力された小数を表示する表示手段、前記表示手段により表示された小数の数字の1つをカーソルの桁移動操作によってユーザに指定させる指定手段、前記表示手段で表示された小数のうち前記指定手段により指定された数字から最終桁の数字までを循環小数の循環節として認識する認識手段、前記表示手段で表示された小数に対して、前記指定手段により指定された数字と最終桁の数字に循環小数符号を付加して表示する符号表示手段、として機能させるプログラムを格納したことを特徴とする。
【0020】
【発明の実施の形態】
以下、図1〜図4を参照して本発明に係る計算装置の実施の形態を詳細に説明する。
まず構成を説明する。
【0021】
図1は、計算装置1の内部構成を示すブロック図である。
この図1において、計算装置1は、CPU(Central processing Unit )11、入力部12、ROM(Read Only Memory)13、RAM(Random Access Memory)14、駆動回路15、及び表示部16によって構成されている。なお、内部メモリとして、ROM13及びRAM14以外にもあるが、図示は省略する。
【0022】
また、以下の明細書中において、循環小数を、例えば0.[142857]や0.1[6]と記載し、記号“[”及び“]”の間の数値が循環節とする。なお、図面においては、一般的に数学で用いられている記号を利用する。例えば、循環小数が0.[142857]の場合、循環節の最初の数字“1”と最後の数字“7”の上に循環小数シンボル“・”を記し(図3(d)参照)、循環小数が0.1[6]の場合、循環節である“6”の上に循環小数シンボル“・”を記す(図4(c)参照)。
【0023】
CPU11は、ROM13に格納されているシステムプログラム及び当該システムに対応する各種アプリケーションプログラムの中から指定されたアプリケーションプログラムをRAM14内のプログラム格納領域(不図示)に展開し、入力部12から入力される各種指示あるいはデータをRAM14内に一時的に格納し、この入力指示及び入力データに応じてRAM14内に展開されたアプリケーションプログラムにしたがって各種処理を実行し、その処理結果をRAM14内に格納するとともに、表示部16に表示する。
【0024】
CPU11は、ROM13に記憶されている循環小数処理プログラムにしたがい、循環小数処理(循環小数の入力や表示を行う処理や循環小数を分数に変換する処理)を実行する。
上記循環小数処理の詳細については図2のフローチャートを用いて後述するので、ここでは概略を述べるにとどめる。
【0025】
CPU11は、入力部12から入力される各種キーの押下信号により、循環小数の循環節までの入力値を特定し、入力された循環小数の循環節までを表示部16に表示する(図3(a)参照)。さらに、CPU11は、循環小数の循環節の最初の数字(小数第m位)を入力部12に設けられたカーソルキーの押下信号及びカーソル位置指定に対応する“キー”の押下信号を基に特定し、表示部16に表示された循環小数に対し、その特定された数字の上に循環小数シンボルである“・”なる記号を付加する(図3(c)参照)。そして、CPU11は、当該特定された数字以降の数字部分が循環節であると認識する。
【0026】
例えば、循環小数0.[142857]の場合、ユーザにより0.142857が入力され、さらに数字“1”の位置にカーソルがユーザにより移動されて、カーソル位置指定に対応する“キー”が入力されることになり、CPU11は入力値“0.142857”中のカーソル位置指定された“1”以降の“142857”の部分が循環節であると認識し、循環小数0.[142857]を認識することとなる。
【0027】
そして、CPU11は、カーソルのある小数第m位が入力された循環小数の循環節の最後の数字(最終桁)であるか否かを判別し、最終桁でない場合にはCPU11はさらに入力された循環小数の循環節の最後の数字(最終桁)を抽出する処理を行い、表示部16に表示された循環小数に対し、抽出した最終桁の数字の上に、循環小数シンボルである“・”なる記号を付加する(図3(d)参照)。
【0028】
さらに、CPU11は、上記処理後、入力部12に設けられた“小分変換キー”が入力されたか否かを、入力部12から入力される押下信号を基に判別し、“小分変換キー”が入力されていた場合には、入力された循環小数から当該循環小数に等しい分数を算出する処理に移行する。
【0029】
入力された循環小数から当該循環小数に等しい分数を算出する処理において、まず、CPU11は入力部12から入力された循環小数(X)の循環節の桁数(n)を算出する処理を行う。そして、CPU11は、循環小数(X)、及び循環節の桁数(n)を利用して、“Y=X×10n−X”の演算を実行して、“Y”の値を算出するとともに、“Z=10n−1”の演算を実行して、“Z”の値を算出する。さらに、CPU11は、“Y”の小数部分の桁数(S)を算出する処理を行う。さらに、CPU11は、当該循環小数(X)と等しい分数(A)を算出する処理(等価的にA=(X×10n−X)×10s/{(10n−1)×10s}の演算と等しい処理)を行い、算出された分数に対して約分処理を実行して、解となる既約分数を算出し、さらに算出結果である分数を、表示部16に解表示する(図3(e)参照)。
【0030】
入力部12は、カーソルキー、数字入力キーおよび各種機能キーなどを備えており、押下されたキーの押下信号をCPU11へ出力する。
【0031】
ROM13は、CPU11により計算装置1の起動時に実行されるIPL(Initial Program Loader)プログラム、循環小数処理プログラム(循環小数の入力や表示を行う処理や循環小数を分数に変換する処理を行うためのコードが書かれたプログラム)の他、IPLプログラムや循環小数処理プログラムに係る各種データの初期設定値等を格納する。
【0032】
RAM14は、CPU11により実行される循環小数処理プログラムや各種アプリケーションプログラムを格納するプログラム格納エリアと、入力指示、入力データ、及び処理結果等を格納するワークメモリ等からなる。
【0033】
駆動回路15は、CPU11により実行される循環小数処理に係るデータや処理結果の他、入力部12から入力される入力データ等を表示信号として表示部16に出力して、表示部16の所定の表示位置に表示する。
【0034】
表示部16は、液晶ディスプレイ等から構成され、駆動回路15から入力される表示信号に応じて、各種データを表示する。
【0035】
次に動作を説明する。
図2は、CPU11による循環小数処理の一例を示すフローチャートである。ここで、CPU11は、ROM13に予め格納されている循環小数処理プログラムをROM13から読み出し、当該循環小数処理プログラムに書かれたプログラムコードにしががい、各種処理を行うことになる。
【0036】
ユーザは入力部12に設けられた“キー”を利用して数値を1桁づつ順次入力し、CPU11は、入力部12から入力される押下信号を基に、ユーザにより入力された“キー”に対応する数字若しくは小数点を、表示部16に表示する処理を行う(ステップS1)。
【0037】
CPU11はステップS1でユーザにより入力された“キー”が小数点に対応する“キー”であるか否かを入力部12から入力される押下信号により判別する(ステップS2)。
【0038】
ステップS2で小数点ではなく数字がユーザにより入力されていたとCPU11が判定した場合には、CPU11は、入力部12に設けられた“実行演算キー”がユーザにより押下されたか否かを判別し(ステップS3)、ユーザにより“実行演算キー”が押下された場合には、他の演算処理へと移行する。
【0039】
一方、ステップS3でCPU11がユーザにより“実行演算キー”が押下されていないと判別した場合には、ステップS1に戻り、ユーザにより数字若しくは小数点が入力される操作が続行される。そして、ステップS2でCPU11により小数点が入力されたと判定されるまで、ステップS1、ステップS2、及びステップS3の処理が繰り返される。
【0040】
ステップS2でCPU11が小数点が入力されたと判別した場合、ユーザは入力部12に設けられた“キー”を利用して数値を1桁づつ順次入力し、CPU11は、入力部12から入力される押下信号を基に、ユーザにより入力された“キー”に対応する数字を、表示部16に表示する処理を行う(ステップS4)。
【0041】
CPU11はユーザにより入力部12に設けられた“循環小数キー”が押下されたか否かを、入力部12から入力される押下信号により判別し(ステップS5)、さらに“循環小数キー”がユーザにより押下されていない場合には、CPU11は、入力部12に設けられた“実行演算キー”がユーザにより押下されたか否かを判別する(ステップS6)。ステップS6でユーザにより“実行演算キー”が押下された場合には、他の演算処理へと移行する。
【0042】
一方、ステップS6でCPU11がユーザにより“実行演算キー”が入力されていないと判別した場合には、ステップS4に戻り、ユーザにより数字が入力される操作が続行される。そして、ステップS5でCPU11がユーザにより“循環小数キー”が押下されたと判別するまで、ステップS4、ステップS5、及びステップS6の処理が繰り返される。
【0043】
ステップS5でCPU11がユーザにより“循環小数キー”が押下されたと判別した場合、ユーザは入力部12に設けられた“カーソルキー”を利用してカーソルを移動させ、当該カーソルを循環小数の循環節の最初の数字の位置に移動させる(ステップS7)。
【0044】
なお、ユーザによりステップS5で入力部12に設けられた“循環小数キー”が押下された場合、ユーザにより循環小数の循環節まで入力されたことになる。例えば、循環小数0.[142857]の場合、ユーザにより0.142857が入力されたことになり、なお、“0”と“.”はステップS1で、“1”、“4”、“2”、“8”、“5”、“7”はステップS5で入力されている。
【0045】
CPU11は、ユーザによりカーソル位置指定が行われたか否かを、すなわち循環小数の循環節の最初の数字にカーソルが移動した場合に押下される“キー”が押下されたか否かを、入力部12から入力される押下信号を基に、判別する(ステップS8)。
【0046】
ステップS8でユーザによりカーソル位置指定が行われるまで、ステップS7、及びステップS8の処理が繰り返され、ステップS8でCPU11がユーザによりカーソル位置指定が行われたと判別した場合、CPU11は循環小数の循環節の最初の数字に当たる、カーソル位置指定がされた数字の上に循環小数シンボルである“・”なる記号を付加して、表示部16に表示する(ステップS9)。そして、CPU11は、カーソル位置指定がなされた数字以降(当該カーソル位置指定がなされた数字を含む)の数字部分が循環節であると認識する。
【0047】
例えば、循環小数0.[142857]の場合、ユーザにより0.142857が入力され、さらに数字“1”の位置にカーソルがユーザにより移動されて、カーソル位置指定に対応する“キー”が押下されることになり、CPU11は入力値“0.142857”中のカーソル位置指定された“1”以降の“142857”の部分が循環節であると認識し、循環小数0.[142857]を認識することとなる。
【0048】
CPU11は、カーソル位置が小数第m位であるかを特定し、当該“m”の値をRAM14の所定領域に格納する(ステップS10)。
【0049】
CPU11は、小数第m位が入力された数値の最終桁であるか、すなわち循環小数の循環節の最後の数字に当たるか、を判別する(ステップS11)。
【0050】
ステップS11でCPU11が小数第m位がユーザにより入力された数値の最終桁でないと判別された場合には、当該mの値を“1”インクリメントする処理を行い(ステップS12)、さらにCPU11は、小数第m位が入力された数字の最終桁であるか、すなわち循環小数の循環節の最後の数字に当たるか、を判別する(ステップS13)。
【0051】
ステップS13でCPU11により小数第m位がユーザにより入力された数値の最終桁であると判別されるまで、ステップS12、及びステップS13の処理が繰り返され、ステップS13でCPU11により小数第m位がユーザにより入力された数値の最終桁であると判別された場合、CPU11は循環小数の循環節の最後の数字に当たる、小数第m位に対応する数字の上に循環小数シンボルである“・”なる記号を付加して、表示部16に表示する(ステップS14)。
【0052】
例えば、循環小数0.[142857]の場合、ステップS9で循環小数の循環節の最初の数字である”1”の上に、またステップS14で当該循環節の最後の数字である”7”の上に循環小数シンボルである“・”なる記号が付加されることになる(図3(d)参照)。
【0053】
また、循環小数0.1[6]の場合には、ステップS12からステップS14の処理は行われず、ステップS9で循環小数の循環節の最初の数字である“6”の上に循環小数シンボルである“・”なる記号が付加されることになる(図4(c)参照)。
【0054】
なお、上記処理までで、循環小数の入力、及び表示部16への循環小数の入力及び表示に関する処理が終了することになる。
【0055】
CPU11は、ユーザにより入力部12に設けられた“小分変換キー”が押下されたか否かを、入力部12から入力される押下信号を基に、判別し(ステップS15)、ユーザにより“小分変換キー”が押下されていない場合には、他処理へと移行する。
【0056】
ステップS15でCPU11がユーザにより入力部に設けられた“小分変換キー”が押下されたと判別した場合には、循環小数を分数に変換する処理に移行し、まず、CPU11は上記処理でユーザにより入力された循環小数(X)をRAM14に格納する処理を行う(ステップS16)。例えば、循環小数0.[142857]の場合、RAM14には数値“0.142857”が格納されるとともに、循環節“142857”がどの部分であるかを示す情報もRAM14に格納される。
【0057】
CPU11は、循環小数(X)の循環節の桁数(n)を算出し、算出結果をRAM14に格納する(ステップS17)。例えば、循環小数0.[142857]の場合、循環節の桁数(n)は“6”となる。
【0058】
そして、CPU11は、RAM14に格納された循環小数(X)、及び循環節の桁数(n)を利用して、“Y=X×10n−X”の演算を実行して、“Y”の値を算出してRAM14に格納する(ステップS18)とともに、“Z=10n−1”の演算を実行して、“Z”の値を算出しRAM14に格納する(ステップS19)。
【0059】
なお、ステップS18の演算は、循環小数のどの部分が循環節であるかを考慮した上で演算する。例えば、循環小数0.[142857]の場合、Y={0.14257×106+0.14257}−0.14257の演算を実行し、また、循環小数0.1[6]の場合、Y={0.16×101+0.06}−0.16の演算を実行する。
【0060】
CPU11は、“S”に初期値として“0”を設定してRAM14に格納し(ステップS20)、CPU11は、RAM14に格納された“Y”の値が小数であるか否かを判別し(ステップS21)、当該“Y”の値が小数であると判別された場合には、さらにCPU11は、“Y←Y×10”の演算を実行して、新たな“Y”の値を算出してRAM14に格納する(ステップS22)とともに、CPU11は、RAM14に格納された“S”の値を“1”インクリメントし、“1”インクリメント後の“S”の値をRAM14に格納する(ステップS23)。
【0061】
ステップS21でCPU11により“Y”の値が小数でないと判別されるまでステップS21、ステップS22、及びステップS23の処理が繰り返し行われる。
【0062】
ここで、循環小数の循環節が小数第m位から始まる場合には、最終的にRAM14に格納される“S”の値は、“m−1”(小数第1位から小数第(m−1)位までの桁数)であり、循環小数0.1[6]の場合、最終的にRAM14に格納される“S”の値は“1”となる。
【0063】
また、循環小数0.[142857]の場合には、ステップS22からステップS23の処理は行われず、最終的にRAM14に格納される“S”の値は、“0”のままである。
【0064】
ステップS21でCPU11により“Y”の値が小数でないと判別されると、CPU11は、ステップS19でRAM14に格納された“Z”の値を利用して、“Z←Z×10s”の演算を実行し、新たな“Z”の値を算出してRAM14に格納する(ステップS24)。
【0065】
そして、CPU11は循環小数(X)に等しい分数(A)を、“A=Y/Z”の演算を実行して、当該分数(A)の値を算出してRAM14に格納し(ステップS25)、さらに、CPU11は、当該分数(A)を約分する処理を行って、解表示する既約分数を算出しRAM14に格納する(ステップS26)。
【0066】
CPU11は、ステップS26で算出された既約分数を、循環小数(X)に等しい分数として表示部16に解表示する(ステップS27)。
【0067】
例えば、循環小数0.[142857]の場合、ステップS26で算出される分数は“1/7”であり、ステップS27で表示部16に解表示される分数は“1/7”である。なお、表示部16には、既にステップS1からステップS14の処理により循環小数0.[142857]が表示されている。
【0068】
さらに、上記循環小数処理における処理過程について、図3及び図4を参照して要約して説明する。
図3は、循環小数処理における処理過程の一例を説明するための図であり、図4は、循環小数処理における処理過程の他の例を説明するための図である。
まず、図3の処理過程の場合について説明する。なお、この場合に入力される循環小数は、“0.[1423857]”である。
【0069】
ユーザは入力部12を利用して、図3(a)に示すように循環小数の循環節まで、すなわち“0.142857”を入力し、入力後、入力部12に設けられた“循環小数キー”を入力する(図2のステップS1からステップS5)。
【0070】
そして、ユーザは入力部12に設けられたカーソルキーを利用して、図3(b)に示すように循環小数の循環節の最初の数字“1”の位置までカーソルを移動する処理を行った後にカーソル位置指定を行う(図2のステップS7からステップS8)。
【0071】
CPU11は、ユーザによりカーソル位置指定が行われると、図3(c)に示すようにカーソル位置指定された数字“1”の上に循環小数シンボルである“・”を表示する(図2のステップS9)。そして、CPU11は、入力値“0.142857”中のカーソル位置指定が行われた数値“1”以降の“142857”の部分が循環節であると認識し、循環小数0.[142857]を認識することとなる。
【0072】
CPU11は、カーソル位置が小数第m位にあるかを特定し、さらに小数第m位がユーザにより入力された最終桁であるか、すなわちユーザにより入力された循環小数の循環節の最後の数字に当たるか、を判別し、図3の場合にはカーソル位置は最終桁ではないので、最終桁を抽出する処理を行い、図3(d)に示すように最終桁の数字“7”の上に循環小数シンボルである“・”を表示する(図2のステップS10からステップS14)。
【0073】
さらにユーザにより入力部12に設けられた“小分変換キー”が入力される(図2のステップS15)と、CPU11は等価的にA=(X×10n−X)×10s/{(10n−1)×10s}と等しい内部演算を行い、入力された循環小数(X)と等しい分数(A)を算出し、当該分数(A)に対して約分処理を行い、当該循環小数(X)と等しい規約分数“1/7”を算出する(図2のステップS16からステップS26)。なお、nは循環小数の桁数であり、Sは“Y=X×10n−X”で算出される“Y”の小数部分の桁数である。ここで、循環小数“0.[142857]”の場合、nの値は“6”であり、Sの値は“0”である。また、ステップS18で算出される“Y”の値は小数でない、すなわち整数であるためステップS21からステップS23の繰り返し処理は行われない。
【0074】
最後に、CPU11は、図3(e)に示すように算出した結果である分数“1/7”を表示部16に表示する処理を行う(図2のステップS27)。
【0075】
次に、図4の処理過程の場合について説明する。なお、この場合に入力される循環小数は、“0.1[6]”である。
【0076】
ユーザは入力部12を利用して、図4(a)に示すように循環小数の循環節まで、すなわち“0.16”を入力し、入力後入力部12に設けられた“循環小数キー”を入力する(図2のステップS1からステップS5)。
【0077】
そして、ユーザは入力部12に設けられたカーソルキーを利用して、図4(b)に示すように循環小数の循環節の最初の数字“6”の位置までカーソルを移動する処理を行った後にカーソル位置指定を行う(図2のステップS7からステップS8)。
【0078】
CPU11は、ユーザによりカーソル位置指定が行われると、図4(c)に示すようにカーソル位置指定された数字“1”の上に循環小数シンボルである“・”を表示する(図2のステップS9)。そして、CPU11は、入力値“0.16”中のカーソル位置指定が行われた数値“6”以降の“6”の部分が循環節であると認識し、循環小数0.1[6]を認識することとなる。
【0079】
CPU11は、カーソル位置が小数第m位にあるかを特定し、さらに小数第m位がユーザにより入力された最終桁であるかを判別し、図3の場合にはカーソル位置は最終桁ではあるので、最終桁を抽出する処理(図2のステップS12からステップS14)を行わない(図2のステップS10からステップS11)。
【0080】
さらにユーザにより入力部12に設けられた“小分変換キー”が押下される(図2のステップS15)と、CPU11は等価的にA=(X×10n−X)×10s/{(10n−1)×10s}と等しい内部演算を行い、入力された循環小数(X)と等しい分数(A)を算出し、当該分数(A)に対して約分処理を行い、当該循環小数(X)と等しい規約分数“1/6”を算出する(図2のステップS16からステップS26)。なお、nは循環小数の桁数であり、Sは“Y=X×10n−X”で算出される“Y”の小数部分の桁数である。ここで、循環小数“0.1[6]”の場合、nの値は“1”であり、Sの値は“1”である。
【0081】
最後にCPU11は、図4(d)に示すように算出した結果である分数“1/6”を表示部16に表示する処理を行う(図2のステップS27)。
【0082】
以上説明したように、本実施の形態の計算装置によれば、循環小数の循環節までを入力するとともに当該循環節を指定することにより循環小数の入力が行えるとともに、指定された循環節に対して、循環小数の循環節の最初と最後に対して循環小数シンボルである“・”なる記号を付加するため、循環小数の表示が可能となる。
【0083】
さらに、入力された循環小数と等しい分数が所定のアルゴリズム(ステップS16からステップS26)にしたがい算出されるため、循環小数を分数に変換することが可能となる。
【0084】
なお、上記本実施の形態では、循環小数の循環節までを入力後、当該循環小数の循環節を指定することにより循環小数を入力する場合であるが、これに限定されるものではなく、循環小数の循環節前までを入力し、所定キー(循環節の始まりを示すキー)を入力後に循環節を入力するなどの入力方法であってもよい。
【0085】
【発明の効果】
本発明によれば、ユーザが数値データとして小数を入力し、表示された小数の数字の1つをカーソルの桁移動操作によって指定することで、小数のうちユーザにより指定された数字から最終桁の数字までが循環小数の循環節として計算装置により認識され、表示された小数に対して、ユーザが指定した数字と最終桁の数字に循環小数符号が付加されて表示されるようになるため、循環小数の入力が可能となるとともに、循環小数の表示が可能となる。
【図面の簡単な説明】
【図1】図1は、計算装置1の内部構成を示すブロック図である。
【図2】図2は、CPU11による循環小数処理の一例を示すフローチャートである。
【図3】図3は、循環小数処理における処理過程の一例を説明するための図である。
【図4】図4は、循環小数処理における処理過程の他の例を説明するための図である。
【符号の説明】
1 計算装置
11 CPU
12 入力部
13 ROM
14 RAM
15 駆動回路
16 表示部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a computing device, and more particularly to a computing device for inputting / displaying a decimal number.
[0002]
[Prior art]
In a conventional computing device, there already exists a computing device that can input decimal numbers and can display the input decimal numbers on a display unit.
There are also computing devices that can convert decimals into fractions.
[0003]
[Problems to be solved by the invention]
However, there is no conventional computing device that can input a circulating decimal or display a circulating decimal on a display unit.
In addition, when converting an input decimal number to a fraction, the number of decimal digits that can be converted to a fraction is limited because the number of digits in the calculation unit is limited, and in particular, a cyclic decimal number must be converted to a fraction. There were difficulties regarding.
[0004]
SUMMARY OF THE INVENTION An object of the present invention is to provide a computing device capable of inputting and displaying a circulating decimal, and to provide a storage medium storing a program for inputting and displaying the circulating decimal.
[0005]
[Means for Solving the Problems]
The calculation apparatus according to the present invention includes a numerical value input unit that allows a user to input a decimal number as numerical data, a display unit that displays a decimal number input by the numerical value input unit, and one of the decimal numbers displayed by the display unit. Recognition means for recognizing the number from the number designated by the designation means to the number of the last digit among the decimal numbers displayed on the display means as a circular clause of a cyclic decimal number And a sign display means for displaying the decimal number displayed by the display means by adding a cyclic decimal code to the number designated by the designation means and the last digit number. .
[0006]
A storage medium according to the present invention is a storage medium that stores a computer-executable program related to control for displaying a cyclic decimal number on a display unit, and allows a user to input a numerical value as numerical data. Display means for displaying a decimal number input by the numerical value input means; designation means for allowing a user to designate one of the decimal numbers displayed by the display means by a digit movement operation of a cursor; displayed by the display means Recognizing means for recognizing from the number specified by the specifying means to the last digit among the decimal numbers as a cyclic node of a circulating decimal, the number specified by the specifying means for the decimal number displayed by the display means And a program for functioning as a sign display means for displaying by adding a cyclic decimal code to the last digit. To.
[0020]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of a computing device according to the present invention will be described in detail with reference to FIGS.
First, the configuration will be described.
[0021]
FIG. 1 is a block diagram showing an internal configuration of the computing device 1.
In FIG. 1, the computing device 1 includes a CPU (Central Processing Unit) 11, an input unit 12, a ROM (Read Only Memory) 13, a RAM (Random Access Memory) 14, a drive circuit 15, and a display unit 16. Yes. Although there are other internal memories besides the ROM 13 and the RAM 14, they are not shown.
[0022]
Further, in the following specification, the circulating decimal is, for example, 0. [142857] and 0.1 [6] are described, and the numerical value between the symbols “[” and “]” is a circular clause. In the drawings, symbols generally used in mathematics are used. For example, the circulating decimal is 0. In the case of [142857], the cyclic decimal symbol “·” is written on the first digit “1” and the last digit “7” of the cyclic clause (see FIG. 3D), and the cyclic decimal is 0.1 [6 ], A cyclic decimal symbol “•” is written on “6” which is a cyclic node (see FIG. 4C).
[0023]
The CPU 11 develops an application program designated from the system program stored in the ROM 13 and various application programs corresponding to the system in a program storage area (not shown) in the RAM 14 and is input from the input unit 12. Various instructions or data are temporarily stored in the RAM 14, various processes are executed in accordance with the application program developed in the RAM 14 according to the input instructions and input data, and the processing results are stored in the RAM 14. It is displayed on the display unit 16.
[0024]
The CPU 11 executes a cyclic decimal process (a process for inputting and displaying a cyclic decimal or a process for converting a cyclic decimal into a fraction) according to a cyclic decimal processing program stored in the ROM 13.
Details of the above-described cyclic decimal processing will be described later with reference to the flowchart of FIG.
[0025]
The CPU 11 specifies the input value up to the circulation node of the decimal number in response to the pressing signal of various keys inputted from the input unit 12, and displays the input value up to the circulation node of the circulation decimal number on the display unit 16 (FIG. 3 ( a)). Further, the CPU 11 specifies the first number (m-th decimal place) of the cyclic node of the decimal number based on the depression signal of the cursor key provided in the input unit 12 and the depression signal of the “key” corresponding to the cursor position designation. Then, a symbol “.”, Which is a cyclic decimal symbol, is added to the cyclic decimal number displayed on the display unit 16 on the specified number (see FIG. 3C). Then, the CPU 11 recognizes that the number part after the specified number is a circulation node.
[0026]
For example, the circulating decimal 0. In the case of [142857], 0.142857 is input by the user, the cursor is moved by the user to the position of the number “1”, and the “key” corresponding to the cursor position designation is input. The part of “142857” after “1” designated by the cursor position in the input value “0.142857” is recognized as a circulation node, and the cyclic decimal number 0. [142857] will be recognized.
[0027]
Then, the CPU 11 determines whether or not the m-th decimal place with the cursor is the last digit (final digit) of the cyclic clause of the inputted decimal number. If it is not the last digit, the CPU 11 further inputs it. The process of extracting the last number (final digit) of the circulation node of the circulation decimal number is performed, and for the circulation decimal number displayed on the display unit 16, a cyclic decimal symbol “·” is placed on the extracted last digit number. Is added (see FIG. 3D).
[0028]
Further, after the above processing, the CPU 11 determines whether or not the “subdivision conversion key” provided in the input unit 12 has been input based on the pressing signal input from the input unit 12. If "" is input, the process proceeds to a process of calculating a fraction equal to the circulating decimal from the input circulating decimal.
[0029]
In the process of calculating a fraction equal to the cyclic decimal from the input cyclic decimal, first, the CPU 11 performs a process of calculating the number of digits (n) of the cyclic node of the cyclic decimal (X) input from the input unit 12. Then, the CPU 11 uses the circulation decimal number (X) and the number of digits of the circulation node (n) to make “Y = X × 10 n -X "is performed to calculate the value of" Y "and" Z = 10 n -1 "is executed to calculate the value of" Z ". Further, the CPU 11 performs a process of calculating the number of digits (S) of the decimal part of" Y ". Processing for calculating a fraction (A) equal to the decimal (X) (equivalently A = (X × 10 n -X) × 10 s / {(10 n -1) x 10 s } Is performed, and a reduction process is performed on the calculated fraction to calculate an irreducible fraction as a solution, and a fraction as a calculation result is displayed on the display unit 16 as a solution. (See FIG. 3 (e)).
[0030]
The input unit 12 includes a cursor key, a numeric input key, various function keys, and the like, and outputs a pressed signal of the pressed key to the CPU 11.
[0031]
The ROM 13 is an IPL (Initial Program Loader) program that is executed by the CPU 11 when the computing device 1 is started up, a cyclic decimal processing program (code for performing processing for inputting and displaying a cyclic decimal, and processing for converting a cyclic decimal into a fraction). ), And initial setting values of various data related to the IPL program and the cyclic decimal processing program.
[0032]
The RAM 14 includes a program storage area for storing a circulating decimal processing program and various application programs executed by the CPU 11, a work memory for storing input instructions, input data, processing results, and the like.
[0033]
The drive circuit 15 outputs the input data input from the input unit 12 and the like to the display unit 16 as a display signal in addition to the data related to the cyclic decimal processing executed by the CPU 11 and the processing result. Display at the display position.
[0034]
The display unit 16 is composed of a liquid crystal display or the like, and displays various data according to a display signal input from the drive circuit 15.
[0035]
Next, the operation will be described.
FIG. 2 is a flowchart showing an example of the circulating decimal processing by the CPU 11. Here, the CPU 11 reads out the cyclic decimal processing program stored in advance in the ROM 13 from the ROM 13, and performs various processes in accordance with the program code written in the cyclic decimal processing program.
[0036]
The user uses the “key” provided in the input unit 12 to sequentially input numerical values one by one, and the CPU 11 selects the “key” input by the user based on the pressing signal input from the input unit 12. A process of displaying the corresponding number or decimal point on the display unit 16 is performed (step S1).
[0037]
The CPU 11 determines whether or not the “key” input by the user in step S1 is a “key” corresponding to the decimal point, based on a pressing signal input from the input unit 12 (step S2).
[0038]
If the CPU 11 determines in step S2 that a number, not a decimal point, has been input by the user, the CPU 11 determines whether the “execution calculation key” provided in the input unit 12 has been pressed by the user (step S2). S3) When the “execution calculation key” is pressed by the user, the process proceeds to another calculation process.
[0039]
On the other hand, if the CPU 11 determines in step S3 that the “execution calculation key” has not been pressed by the user, the process returns to step S1 and the operation of inputting a number or decimal point by the user is continued. And the process of step S1, step S2, and step S3 is repeated until it determines with the CPU 11 having input the decimal point by step S2.
[0040]
When the CPU 11 determines in step S2 that the decimal point has been input, the user sequentially inputs numerical values one by one using the “key” provided in the input unit 12, and the CPU 11 presses the input from the input unit 12. Based on the signal, the number corresponding to the “key” input by the user is displayed on the display unit 16 (step S4).
[0041]
The CPU 11 determines whether or not the “circular decimal key” provided in the input unit 12 has been pressed by the user based on a pressing signal input from the input unit 12 (step S5). If not, the CPU 11 determines whether or not the “execution calculation key” provided in the input unit 12 has been pressed by the user (step S6). When the “execution calculation key” is pressed by the user in step S6, the process proceeds to another calculation process.
[0042]
On the other hand, when the CPU 11 determines in step S6 that the “execution calculation key” has not been input by the user, the process returns to step S4, and the operation of inputting a number by the user is continued. Then, the processing of step S4, step S5, and step S6 is repeated until the CPU 11 determines in step S5 that the “circular decimal key” has been pressed by the user.
[0043]
When the CPU 11 determines in step S5 that the “circular decimal key” has been pressed by the user, the user moves the cursor using the “cursor key” provided in the input unit 12, and moves the cursor to the cyclic decimal cyclic node. Is moved to the position of the first number (step S7).
[0044]
When the user presses the “circulation decimal key” provided in the input unit 12 in step S5, the user has input up to the circulation node of the circulation decimal. For example, the circulating decimal 0. In the case of [142857], 0.142857 is input by the user, and “0” and “.” Are “1”, “4”, “2”, “8”, “ “5” and “7” are input in step S5.
[0045]
The CPU 11 determines whether or not the cursor position has been specified by the user, that is, whether or not the “key” that is pressed when the cursor moves to the first number of the circular clause of the cyclic decimal is pressed. The determination is made based on the pressing signal input from (step S8).
[0046]
Steps S7 and S8 are repeated until the cursor position is designated by the user in step S8. When the CPU 11 determines that the cursor position is designated by the user in step S8, the CPU 11 A symbol “·”, which is a cyclic decimal symbol, is added to the number corresponding to the first number of which the cursor position is designated and displayed on the display unit 16 (step S9). Then, the CPU 11 recognizes that the number part after the number designated by the cursor position (including the number designated by the cursor position) is a circular clause.
[0047]
For example, the circulating decimal 0. In the case of [142857], 0.142857 is input by the user, the cursor is moved to the position of the number “1” by the user, and the “key” corresponding to the cursor position designation is pressed, and the CPU 11 The part of “142857” after “1” designated by the cursor position in the input value “0.142857” is recognized as a circulation node, and the cyclic decimal number 0. [142857] will be recognized.
[0048]
The CPU 11 specifies whether the cursor position is m-th decimal place, and stores the value of “m” in a predetermined area of the RAM 14 (step S10).
[0049]
The CPU 11 determines whether the m-th decimal place is the last digit of the input numerical value, that is, whether it is the last digit of the circulation node of the circulation decimal (step S11).
[0050]
When the CPU 11 determines in step S11 that the m-th decimal place is not the last digit of the numerical value input by the user, the CPU 11 performs a process of incrementing the value of m by “1” (step S12). It is determined whether or not the m-th decimal place is the last digit of the inputted number, that is, the last digit of the circulation node of the circulation decimal number (step S13).
[0051]
In step S13, the processing of step S12 and step S13 is repeated until the CPU 11 determines that the mth decimal place is the last digit of the numerical value input by the user. In step S13, the CPU 11 changes the mth decimal place to the user. When the CPU 11 determines that it is the last digit of the numerical value inputted by the symbol, the CPU 11 corresponds to the last digit of the cyclic node of the cyclic decimal number and the symbol “·” which is the cyclic decimal symbol on the number corresponding to the m-th decimal place Is added and displayed on the display unit 16 (step S14).
[0052]
For example, the circulating decimal 0. In the case of [142857], in step S9, a cyclic decimal symbol is added on “1”, which is the first digit of the cyclic node of the cyclic decimal, and on “7”, which is the last digit of the cyclic node, in step S14. A certain symbol “·” is added (see FIG. 3D).
[0053]
In the case of the cyclic decimal number 0.1 [6], the processing from step S12 to step S14 is not performed, and in step S9, the cyclic decimal symbol is added to “6” which is the first digit of the cyclic node of the cyclic decimal. A symbol “·” is added (see FIG. 4C).
[0054]
By the above processing, the processing related to the input of the decimal number and the input and display of the decimal number to the display unit 16 is completed.
[0055]
The CPU 11 determines whether or not the “subdivision conversion key” provided in the input unit 12 has been pressed by the user based on the pressing signal input from the input unit 12 (step S15). If the “minute conversion key” is not pressed, the process proceeds to another process.
[0056]
If the CPU 11 determines in step S15 that the “fractional conversion key” provided in the input unit has been pressed by the user, the process proceeds to a process of converting the circulating decimal into a fraction. First, the CPU 11 performs the above process by the user. A process of storing the input circulating decimal (X) in the RAM 14 is performed (step S16). For example, the circulating decimal 0. In the case of [142857], the numerical value “0.142857” is stored in the RAM 14, and information indicating which part the circulation node “142857” is is also stored in the RAM 14.
[0057]
The CPU 11 calculates the number of digits (n) of the circulation node of the circulation decimal (X), and stores the calculation result in the RAM 14 (step S17). For example, the circulating decimal 0. In the case of [142857], the number of digits (n) of the circular node is “6”.
[0058]
Then, the CPU 11 uses the cyclic decimal number (X) and the number of digits of the cyclic node (n) stored in the RAM 14 to “Y = X × 10 n -X "is calculated, the value of" Y "is calculated and stored in the RAM 14 (step S18), and" Z = 10 n -1 "is executed to calculate the value of" Z "and store it in the RAM 14 (step S19).
[0059]
Note that the calculation in step S18 is performed in consideration of which part of the circulation decimal is a circulation node. For example, the circulating decimal 0. In the case of [142857], Y = {0.14257 × 10 6 +0.14257} −0.14257 is executed, and if the decimal number is 0.1 [6], Y = {0.16 × 10 1 An operation of +0.06} −0.16 is executed.
[0060]
The CPU 11 sets “S” as an initial value “0” and stores it in the RAM 14 (step S20), and the CPU 11 determines whether or not the value “Y” stored in the RAM 14 is a decimal ( In step S21), when it is determined that the value of “Y” is a decimal number, the CPU 11 further executes a calculation of “Y ← Y × 10” to calculate a new value of “Y”. The CPU 11 increments the value of “S” stored in the RAM 14 by “1” and stores the value of “S” after the increment of “1” in the RAM 14 (step S23). ).
[0061]
Steps S21, S22, and S23 are repeated until the CPU 11 determines that the value of “Y” is not a decimal in step S21.
[0062]
Here, when the cyclic node of the decimal number starts from the m-th decimal place, the value of “S” finally stored in the RAM 14 is “m−1” (from the first decimal place to the (m− 1) the number of digits up to the order), and in the case of the decimal number 0.1 [6], the value of “S” finally stored in the RAM 14 is “1”.
[0063]
In addition, the circulating decimal 0. In the case of [142857], the processing from step S22 to step S23 is not performed, and the value of “S” finally stored in the RAM 14 remains “0”.
[0064]
If the CPU 11 determines that the value of “Y” is not a decimal number in step S21, the CPU 11 uses the value of “Z” stored in the RAM 14 in step S19 to make “Z ← Z × 10 s Is calculated, and a new value “Z” is calculated and stored in the RAM 14 (step S24).
[0065]
Then, the CPU 11 performs the operation of “A = Y / Z” for the fraction (A) equal to the circulating decimal (X), calculates the value of the fraction (A), and stores it in the RAM 14 (step S25). Further, the CPU 11 performs a process of reducing the fraction (A), calculates an irreducible fraction to be displayed as a solution, and stores it in the RAM 14 (step S26).
[0066]
The CPU 11 displays the irreducible fraction calculated in step S26 as a fraction equal to the circulating decimal (X) on the display unit 16 (step S27).
[0067]
For example, the circulating decimal 0. In the case of [142857], the fraction calculated in step S26 is “1/7”, and the fraction displayed on the display unit 16 in step S27 is “1/7”. It should be noted that the display unit 16 has already been provided with the circulating decimal 0. [142857] is displayed.
[0068]
Further, the processing steps in the above-described cyclic decimal processing will be described in summary with reference to FIG. 3 and FIG.
FIG. 3 is a diagram for explaining an example of a processing process in cyclic decimal processing, and FIG. 4 is a diagram for explaining another example of a processing process in cyclic decimal processing.
First, the case of the process in FIG. 3 will be described. In this case, the circulating decimal number input is “0. [1143857]”.
[0069]
As shown in FIG. 3A, the user uses the input unit 12 to input up to the circulation node of the circulation decimal number, that is, “0.142857”. After the input, the “circulation decimal key” provided in the input unit 12 "Is input (step S1 to step S5 in FIG. 2).
[0070]
Then, the user uses the cursor key provided in the input unit 12 to perform the process of moving the cursor to the position of the first number “1” of the circulation node of the circulation decimal number as shown in FIG. The cursor position is specified later (step S7 to step S8 in FIG. 2).
[0071]
When the cursor position is designated by the user, the CPU 11 displays “/” as a cyclic decimal symbol on the number “1” designated by the cursor position as shown in FIG. 3C (step in FIG. 2). S9). Then, the CPU 11 recognizes that the part of “142857” after the numerical value “1” in which the cursor position is designated in the input value “0.142857” is a circulation node, and the circulation decimal 0. [142857] will be recognized.
[0072]
The CPU 11 specifies whether the cursor position is at the m-th decimal place, and further, whether the m-th decimal place is the last digit inputted by the user, that is, corresponds to the last digit of the cyclic node of the cyclic decimal place inputted by the user. 3, the cursor position is not the last digit in the case of FIG. 3, so the process of extracting the last digit is performed, and as shown in FIG. 3D, it is circulated on the last digit “7”. The decimal symbol “·” is displayed (step S10 to step S14 in FIG. 2).
[0073]
Further, when the user inputs a “subdivision conversion key” provided in the input unit 12 (step S15 in FIG. 2), the CPU 11 equivalently A = (X × 10 n -X) × 10 s / {(10 n -1) x 10 s }, A fraction (A) equal to the input cyclic decimal (X) is calculated, a fractional processing is performed on the fraction (A), and a contracted fraction equal to the cyclic decimal (X) “1/7” is calculated (step S16 to step S26 in FIG. 2). In addition, n is the number of digits of the circulating decimal, and S is “Y = X × 10 n −X ”is the number of digits of the decimal part of“ Y ”, where the cyclic decimal number“ 0. In the case of [142857], the value of n is “6” and the value of S is “0.” Also, since the value of “Y” calculated in step S18 is not a decimal, that is, an integer, step The repetition process from S21 to step S23 is not performed.
[0074]
Finally, the CPU 11 performs processing for displaying the fraction “1/7” as a result of calculation as shown in FIG. 3E on the display unit 16 (step S27 in FIG. 2).
[0075]
Next, the case of the process in FIG. 4 will be described. In this case, the circulating decimal number input is “0.1 [6]”.
[0076]
As shown in FIG. 4A, the user uses the input unit 12 to input “0.16” up to the circulation node of the circulation decimal, and the “circulation decimal key” provided in the input unit 12 after the input. (Step S1 to Step S5 in FIG. 2).
[0077]
Then, the user uses the cursor key provided in the input unit 12 to perform the process of moving the cursor to the position of the first number “6” of the circulation node of the decimal number as shown in FIG. 4B. The cursor position is specified later (step S7 to step S8 in FIG. 2).
[0078]
When the cursor position is designated by the user, the CPU 11 displays “/” as a cyclic decimal symbol on the number “1” designated by the cursor position as shown in FIG. 4C (step in FIG. 2). S9). Then, the CPU 11 recognizes that the part of “6” after the numerical value “6” in which the cursor position is designated in the input value “0.16” is a circulation node, and sets the circulation decimal number 0.1 [6]. Will be recognized.
[0079]
The CPU 11 identifies whether the cursor position is at the m-th decimal place, further determines whether the m-th decimal place is the last digit input by the user, and in the case of FIG. 3, the cursor position is the last digit. Therefore, the process of extracting the last digit (step S12 to step S14 in FIG. 2) is not performed (step S10 to step S11 in FIG. 2).
[0080]
Further, when the “subdivision conversion key” provided in the input unit 12 is pressed by the user (step S15 in FIG. 2), the CPU 11 equivalently A = (X × 10 n -X) × 10 s / {(10 n -1) x 10 s }, A fraction (A) equal to the input cyclic decimal (X) is calculated, a fractional processing is performed on the fraction (A), and a contracted fraction equal to the cyclic decimal (X) “1/6” is calculated (step S16 to step S26 in FIG. 2). In addition, n is the number of digits of the circulating decimal, and S is “Y = X × 10 n -X "is the number of digits of the decimal part of" Y ", where the value of n is" 1 "and the value of S is" 1 "in the case of the cyclic decimal number" 0.1 [6] " 1 ".
[0081]
Finally, the CPU 11 performs a process of displaying the fraction “1/6” as a result of calculation as shown in FIG. 4D on the display unit 16 (step S27 in FIG. 2).
[0082]
As described above, according to the calculation device of the present embodiment, it is possible to input up to a circulation number with a circulation decimal and specify the circulation node to input a circulation decimal, Thus, since the symbol “·”, which is a cyclic decimal symbol, is added to the beginning and end of the cyclic node of the cyclic decimal, it is possible to display the cyclic decimal.
[0083]
Further, since a fraction equal to the inputted cyclic decimal is calculated according to a predetermined algorithm (step S16 to step S26), the cyclic decimal can be converted into a fraction.
[0084]
In the present embodiment, the cycle number is input by designating the cycle node of the cycle number after inputting the cycle node of the cycle number. However, the present invention is not limited to this. An input method may be used, such as inputting up to a small number of circulating nodes and inputting a circulating node after inputting a predetermined key (a key indicating the beginning of the circulating node).
[0085]
【The invention's effect】
According to the present invention, the user inputs a decimal number as numerical data, and designates one of the displayed decimal numbers by a cursor digit movement operation, whereby the last digit of the decimal number is changed from the number designated by the user. The number up to the number is recognized by the computing device as a circular clause with a cyclic decimal number, and the displayed decimal number is displayed with a cyclic decimal code added to the number specified by the user and the final digit number. A decimal number can be input and a circulating decimal number can be displayed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an internal configuration of a computing device 1;
FIG. 2 is a flowchart illustrating an example of a circulating decimal process performed by a CPU 11;
FIG. 3 is a diagram for explaining an example of a processing process in cyclic decimal processing;
FIG. 4 is a diagram for explaining another example of a processing process in cyclic decimal processing;
[Explanation of symbols]
1 computing device
11 CPU
12 Input section
13 ROM
14 RAM
15 Drive circuit
16 Display section

Claims (2)

ユーザに数値データとして小数を入力させる数値入力手段と、
前記数値入力手段により入力された小数を表示する表示手段と、
前記表示手段により表示された小数の数字の1つをカーソルの桁移動操作によってユーザに指定させる指定手段と、
前記表示手段で表示された小数のうち前記指定手段により指定された数字から最終桁の数字までを循環小数の循環節として認識する認識手段と、
前記表示手段で表示された小数に対して、前記指定手段により指定された数字と最終桁の数字に循環小数符号を付加して表示する符号表示手段と
を備えたことを特徴とする計算装置。
Numeric input means for allowing the user to input decimal numbers as numeric data;
Display means for displaying a decimal number input by the numerical value input means;
Designation means for allowing the user to designate one of the decimal numbers displayed by the display means by a digit movement operation of a cursor;
Recognizing means for recognizing from the number designated by the designation means to the last digit number among the decimal numbers displayed by the display means as a circulation clause of a circulation decimal number;
Sign display means for displaying a decimal number displayed by the display means by adding a cyclic decimal code to the number designated by the designation means and the last digit number. Computing device.
循環小数を表示部に表示する制御にかかわるコンピュータが実行可能なプログラムを格納した記憶媒体であって、A storage medium storing a computer-executable program related to control for displaying a circulating decimal number on a display unit,
コンピュータを、Computer
ユーザに数値データとして小数を入力させる数値入力手段、Numeric input means that allows the user to input decimal numbers as numeric data,
前記数値入力手段により入力された小数を表示する表示手段、Display means for displaying a decimal number input by the numerical value input means;
前記表示手段により表示された小数の数字の1つをカーソルの桁移動操作によってユーザに指定させる指定手段、Designation means for causing the user to designate one of the decimal numbers displayed by the display means by a digit movement operation of a cursor;
前記表示手段で表示された小数のうち前記指定手段により指定された数字から最終桁の数字までを循環小数の循環節として認識する認識手段、Recognizing means for recognizing from the decimal number displayed by the display means to the last digit from the number designated by the designating means,
前記表示手段で表示された小数に対して、前記指定手段により指定された数字と最終桁の数字に循環小数符号を付加して表示する符号表示手段、A sign display means for displaying a decimal number displayed by the display means by adding a cyclic decimal code to the number designated by the designation means and the last digit number;
として機能させるプログラムを格納したことを特徴とする記憶媒体。A storage medium storing a program that functions as a storage medium.
JP29574498A 1998-10-16 1998-10-16 Computing device and storage medium Expired - Fee Related JP3817937B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29574498A JP3817937B2 (en) 1998-10-16 1998-10-16 Computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29574498A JP3817937B2 (en) 1998-10-16 1998-10-16 Computing device and storage medium

Publications (2)

Publication Number Publication Date
JP2000122978A JP2000122978A (en) 2000-04-28
JP3817937B2 true JP3817937B2 (en) 2006-09-06

Family

ID=17824612

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29574498A Expired - Fee Related JP3817937B2 (en) 1998-10-16 1998-10-16 Computing device and storage medium

Country Status (1)

Country Link
JP (1) JP3817937B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4396758B2 (en) * 2007-10-31 2010-01-13 カシオ計算機株式会社 Circulating decimal display device and circulating decimal display control program
CN114063959A (en) * 2021-11-18 2022-02-18 得力集团有限公司 Calculator circulation decimal display control method and calculator

Also Published As

Publication number Publication date
JP2000122978A (en) 2000-04-28

Similar Documents

Publication Publication Date Title
JP2007172382A (en) Program and device for displaying fraction
JP3140916B2 (en) Formula input device
JP3817937B2 (en) Computing device and storage medium
JP2951664B2 (en) Touch panel device
JPH1040247A (en) Data processor
JPH0721131A (en) Calculating device
JPH1040221A (en) Electronic equipment and method for displaying mathematical expression including variable
JPS61243517A (en) Information processor with help function
JP2651166B2 (en) Information processing method
JPH0128396B2 (en)
JPH0421151Y2 (en)
JP2969154B2 (en) Input processing unit
JP2000122979A (en) Calculating device and storage medium
JPH11161613A (en) Electronic computer, computing method, and record medium storing computing process program
JP3978879B2 (en) COMPUTER DEVICE AND RECORDING MEDIUM CONTAINING COMPUTER PROCESSING PROGRAM
JP2001005760A (en) Network equipment setting tool
JPH04130571A (en) Numerical arithmetic system
JP3530616B2 (en) Character conversion method for character processing device
JP2564137Y2 (en) Graph creation device
JP2000122980A (en) Calculating device and storage medium
JPH03251972A (en) Multi-item input device
JPH0567958B2 (en)
JPH04165521A (en) Input processor
JPS63269248A (en) Small electronic computer
JPH0991277A (en) Document processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060201

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060228

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060417

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060523

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060605

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: 20090623

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100623

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110623

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110623

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120623

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120623

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130623

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees