JP7419911B2 - Electronic equipment, calculation methods and programs - Google Patents

Electronic equipment, calculation methods and programs Download PDF

Info

Publication number
JP7419911B2
JP7419911B2 JP2020052741A JP2020052741A JP7419911B2 JP 7419911 B2 JP7419911 B2 JP 7419911B2 JP 2020052741 A JP2020052741 A JP 2020052741A JP 2020052741 A JP2020052741 A JP 2020052741A JP 7419911 B2 JP7419911 B2 JP 7419911B2
Authority
JP
Japan
Prior art keywords
numerical value
input
unit
height
calculation
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.)
Active
Application number
JP2020052741A
Other languages
Japanese (ja)
Other versions
JP2021152736A5 (en
JP2021152736A (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 JP2020052741A priority Critical patent/JP7419911B2/en
Publication of JP2021152736A publication Critical patent/JP2021152736A/en
Publication of JP2021152736A5 publication Critical patent/JP2021152736A5/ja
Priority to JP2024001183A priority patent/JP2024024089A/en
Application granted granted Critical
Publication of JP7419911B2 publication Critical patent/JP7419911B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Calculators And Similar Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Description

本発明は、電子機器、計算方法、及びプログラムに関する。 The present invention relates to an electronic device, a calculation method, and a program.

従来、数値や単位が入力される電卓等の電子機器において、数値や単位の誤りを判別する技術が知られている。この種の技術について記載されているものとして例えば特許文献1がある。特許文献1には、入力された物理単位付きの計算式を演算し、演算された解の単位が適正な物理単位であるか否かを判別し、判別結果を表示する演算装置及びプログラムが記載されている。 2. Description of the Related Art Conventionally, in electronic devices such as calculators into which numerical values and units are input, techniques for determining errors in numerical values and units are known. For example, Patent Document 1 describes this type of technology. Patent Document 1 describes a calculation device and a program that calculates an input formula with a physical unit, determines whether the unit of the calculated solution is an appropriate physical unit, and displays the determination result. has been done.

特開2011-186771号公報Japanese Patent Application Publication No. 2011-186771

ところで、予め単位が設定された入力項目に値を入力する電子機器において、設定された単位を誤認すると大きく異なる結果が出力される。例えば、単位がmに設定された入力項目にcmに換算した数値を入力すると、桁数が異なる結果が出力されてしまう。特許文献1の技術では、単位の種類の正誤判定を行うことはできるが、入力された数値や単位の大きさに誤りがあってもその誤りを検出することはできなかった。 By the way, in an electronic device in which a value is input into an input item in which a unit is set in advance, if the set unit is misidentified, a significantly different result will be output. For example, if a numerical value converted to cm is input into an input item whose unit is set to m, a result with a different number of digits will be output. Although the technique disclosed in Patent Document 1 can determine whether the type of unit is correct or incorrect, it cannot detect an error even if there is an error in the input numerical value or the size of the unit.

本発明は、設定された単位を誤認して数値を誤入力した場合であっても、数値に対して誤った単位を入力した場合であっても、より適切な値又は単位に修正できる電子機器、計算方法、及びプログラムを提供することを目的とする。 The present invention provides an electronic device that can correct the value or unit to a more appropriate value even if the user misidentifies the set unit and inputs the wrong value, or even if the user inputs the wrong unit for the value. The purpose is to provide calculation methods and programs.

上記目的を達成するため、本発明に係る電子機器は、所定の計算式の変数項目にユーザ操作により入力された第1の数値が前記変数項目に対応付けて予め設定されている範囲内にない場合に、前記入力された第1の数値が前記変数項目に対応付けられている第1の単位とは異なる第2の単位で入力されたとものとして、所定の対応関係情報に基づいて前記第1の数値を前記第1の単位に対応させた第2の数値に変換する変換手段と、前記変換手段により前記第1の数値を変換することで取得した前記第2の数値が前記第1の数値に代えて前記変数項目に入力された前記計算式での計算結果を表示させる表示制御手段と、を備えることを特徴とする。
また、本発明に係る計算方法は、電子機器が実行する計算方法であって、所定の計算式の変数項目にユーザ操作により入力された第1の数値が前記変数項目に対応付けて予め設定されている範囲内にない場合に、前記入力された第1の数値が前記変数項目に対応付けられている第1の単位とは異なる第2の単位で入力されたとものとして、所定の対応関係情報に基づいて前記第1の数値を前記第1の単位に対応させた第2の数値に変換する変換処理と、前記変換処理で前記第1の数値を変換することで取得した前記第2の数値が前記第1の数値に代えて前記変数項目に入力された前記計算式での計算結果を表示させる表示制御処理と、を含むことを特徴とする。
また、本発明に係るプログラムは、コンピュータを、所定の計算式の変数項目にユーザ操作により入力された第1の数値が前記変数項目に対応付けて予め設定されている範囲内にない場合に、前記入力された第1の数値が前記変数項目に対応付けられている第1の単位とは異なる第2の単位で入力されたとものとして、所定の対応関係情報に基づいて前記第1の数値を前記第1の単位に対応させた第2の数値に変換する変換手段、前記変換手段により前記第1の数値を変換することで取得した前記第2の数値が前記第1の数値に代えて前記変数項目に入力された前記計算式での計算結果を表示させる表示制御手段、として機能させることを特徴とする。
In order to achieve the above object, an electronic device according to the present invention provides that a first numerical value inputted by a user operation into a variable item of a predetermined calculation formula is not within a range preset in association with the variable item. In this case, assuming that the input first numerical value is input in a second unit different from the first unit associated with the variable item, the first numerical value is calculated based on predetermined correspondence relationship information. a conversion means for converting a numerical value into a second numerical value corresponding to the first unit; and the second numerical value obtained by converting the first numerical value by the conversion means is the first numerical value. The present invention is characterized by comprising a display control means for displaying a calculation result of the calculation formula input in the variable item instead of the variable item.
Further, the calculation method according to the present invention is a calculation method executed by an electronic device, in which a first numerical value inputted by a user operation into a variable item of a predetermined calculation formula is set in advance in association with the variable item. If it is not within the range, it is assumed that the input first numerical value is input in a second unit different from the first unit associated with the variable item, and the predetermined correspondence relationship information is a conversion process of converting the first numerical value into a second numerical value corresponding to the first unit based on the conversion process; and the second numerical value obtained by converting the first numerical value in the conversion process. is characterized in that it includes a display control process of displaying a calculation result of the calculation formula input in the variable item instead of the first numerical value.
Further, the program according to the present invention causes the computer to perform the following operations when the first numerical value inputted by the user operation into the variable item of a predetermined calculation formula is not within a range preset in association with the variable item. Assuming that the input first numerical value is input in a second unit different from the first unit associated with the variable item, the first numerical value is determined based on predetermined correspondence information. a conversion means for converting into a second numerical value corresponding to the first unit; the second numerical value obtained by converting the first numerical value by the conversion means is replaced with the first numerical value; It is characterized in that it functions as a display control means for displaying calculation results using the calculation formula input into the variable items.

本発明によれば、設定された単位を誤認して数値を誤入力した場合であっても、数値に対して誤った単位を入力した場合であっても、より適切な値又は単位に修正できる電子機器、計算方法、及びプログラムを提供できる。 According to the present invention, even if a numerical value is entered incorrectly due to a misidentification of the set unit, or even if an incorrect unit is entered for a numerical value, it can be corrected to a more appropriate value or unit. Electronic equipment, calculation methods, and programs can be provided.

本発明の一実施形態に係る電卓1の構成を示す概略図である。1 is a schematic diagram showing the configuration of a calculator 1 according to an embodiment of the present invention. 本発明の一実施形態に係る電卓1のハードウェアの構成を示すブロック図である。1 is a block diagram showing a hardware configuration of a calculator 1 according to an embodiment of the present invention. FIG. 図1の電卓1の機能的構成のうち、BMI計算処理を実行するための機能的構成を示す機能ブロック図である。2 is a functional block diagram showing a functional configuration for executing a BMI calculation process among the functional configurations of the calculator 1 in FIG. 1. FIG. 図3の機能的構成を有する図1の電卓1が実行するBMI計算処理の流れを説明するフローチャートである。4 is a flowchart illustrating the flow of a BMI calculation process executed by the calculator 1 of FIG. 1 having the functional configuration of FIG. 3. FIG. 本発明の一実施形態に係る電卓1におけるキー操作に応じてディスプレイ3に表示される表示内容の一例を示す模式図である。FIG. 3 is a schematic diagram showing an example of display content displayed on the display 3 in response to key operations in the calculator 1 according to an embodiment of the present invention. 従来の電卓におけるキー操作に応じてディスプレイ3に表示される表示内容の一例を示す模式図である。FIG. 3 is a schematic diagram showing an example of display content displayed on the display 3 in response to key operations in a conventional calculator. 図3の機能的構成を有する図1の電卓1が実行するBMI計算処理における補正値再表示処理の流れを説明するフローチャートである。4 is a flowchart illustrating the flow of a correction value redisplay process in a BMI calculation process executed by the calculator 1 of FIG. 1 having the functional configuration of FIG. 3. FIG. 本発明の一実施形態に係る電卓1におけるキー操作に応じてディスプレイ3に表示される表示内容の一例を示す模式図である。FIG. 3 is a schematic diagram showing an example of display content displayed on the display 3 in response to key operations in the calculator 1 according to an embodiment of the present invention.

以下、本発明の実施形態について、図面を用いて説明する。 Embodiments of the present invention will be described below with reference to the drawings.

[電卓の概要]
まず、本発明の実施形態に係る電卓1について説明する。図1は、本発明の一実施形態に係る電卓1を示す概略図である。
[Calculator overview]
First, a calculator 1 according to an embodiment of the present invention will be described. FIG. 1 is a schematic diagram showing a calculator 1 according to an embodiment of the present invention.

本実施形態に係る電卓1は、薬剤の調剤時等に必要な計算機能を有する計算機器である。電卓1は、各種キーを有する入力キー群2と、ディスプレイ3と、を備える。本実施形態の電卓1は、物理的な実体を持ったハードウェアであってもよいし、パーソナルコンピュータや携帯電話等のハードウェアで実行されるアプリケーションソフトウェアであってもよい。 The calculator 1 according to the present embodiment is a computing device that has a calculation function necessary for dispensing drugs and the like. The calculator 1 includes an input key group 2 having various keys, and a display 3. The calculator 1 of this embodiment may be hardware with a physical entity, or may be application software executed on hardware such as a personal computer or a mobile phone.

入力キー群2は、ユーザから数値や演算記号等の入力操作、各種処理の選択等の指示操作を受け付けるためのキー群である。具体的には、入力キー群2は、テンキー20と、入力キー21、削除キー22、小数点表示選択キー23、モード切替キー24を含んで構成される。 The input key group 2 is a group of keys for receiving input operations such as numerical values and operation symbols, instruction operations such as selection of various processes, etc. from the user. Specifically, the input key group 2 includes a numeric keypad 20, an input key 21, a delete key 22, a decimal point display selection key 23, and a mode switching key 24.

テンキー20は、数値や各種演算記号の入力操作を受けるキーである。入力キー21は、処理の実行指示や決定指示の入力操作を受けるキーである。削除キー22は、ディスプレイ3に表示されている数値や後述する記憶部12に記憶されたデータを削除する指示の入力操作を受けるキーである。小数点表示選択キー23は、小数点以下の桁の表示方法の切替指示の入力操作を受けるキーである。モード切替キー24は、各種計算処理を行うモードに切り替える入力操作を受けるキーである。 The numeric keypad 20 is a key for receiving input operations for numerical values and various arithmetic symbols. The input key 21 is a key for receiving input operations for processing execution instructions and decision instructions. The delete key 22 is a key for receiving an input operation for deleting numerical values displayed on the display 3 or data stored in the storage section 12, which will be described later. The decimal point display selection key 23 is a key that receives an input operation for switching the display method of digits below the decimal point. The mode switching key 24 is a key that receives an input operation to switch to a mode in which various calculation processes are performed.

本実施形態の電卓1で使用可能な計算処理としては、クレアチニン・クリアランス算出処理、糸球体ろ過量計算処理、%換算処理、日数計算処理、散薬を分包する場合に使用する計算処理、BMI計算処理、体表面積計算処理、余り計算を行う処理等が挙げられる。 Calculation processes that can be used with the calculator 1 of this embodiment include creatinine clearance calculation process, glomerular filtration rate calculation process, % conversion process, number of days calculation process, calculation process used when packaging powdered medicine, and BMI calculation. Examples include processing, body surface area calculation processing, and remainder calculation processing.

また、本実施形態の電卓1は、入力された所定の入力項目の数値が不合理なものである場合、より適切な数値に自動で変換する機能を有する。例えば、BMI計算処理において、入力された第1の数値が不合理である場合、当該第1の数値から変換された補正値である第2の数値によってBMIが算出される。 Furthermore, the calculator 1 of the present embodiment has a function of automatically converting a numerical value of a predetermined input item into a more appropriate numerical value when the numerical value is unreasonable. For example, in a BMI calculation process, if an input first numerical value is unreasonable, the BMI is calculated using a second numerical value that is a correction value converted from the first numerical value.

ディスプレイ3は、LCD(Liquid Crystal Display)やELD(Electronic Luminescent Display)等により構成される。ディスプレイ3は、入力キー群2の操作に応じた文字や符号、数式、演算結果等の電卓1の使用に必要な各種データを表示する。 The display 3 is configured by an LCD (Liquid Crystal Display), an ELD (Electronic Luminescent Display), or the like. The display 3 displays various data necessary for using the calculator 1, such as characters, codes, mathematical formulas, and calculation results according to the operations of the input key group 2.

[ハードウェア構成]
次に、電卓1のハードウェアの構成について説明する。図2は、電卓1のハードウェアの構成を示すブロック図である。図2に示すように、電卓1は、CPU(Central Processing Unit)11と、ROM(Read Only Memory)4やRAM(Random Access Memory)5を備える記憶部12と、入力部13と、表示部14と、を備える。
[Hardware configuration]
Next, the hardware configuration of the calculator 1 will be explained. FIG. 2 is a block diagram showing the hardware configuration of the calculator 1. As shown in FIG. As shown in FIG. 2, the calculator 1 includes a CPU (Central Processing Unit) 11, a storage section 12 including a ROM (Read Only Memory) 4 and a RAM (Random Access Memory) 5, an input section 13, and a display section 14. and.

CPU11は、入力されたキーに対応する操作信号を入力部13から受け、ディスプレイ3上への数値や文字列等の表示、入力値の変換、計算の実行等の種々の処理を行う。CPU11は、記憶部12のROM4に記録されているプログラムに従って各種の処理を実行する。記憶部12のRAM5には、CPU11が各種の処理を実行する上において必要なデータ等も適宜記憶される。 The CPU 11 receives operation signals corresponding to input keys from the input unit 13, and performs various processes such as displaying numerical values, character strings, etc. on the display 3, converting input values, and executing calculations. The CPU 11 executes various processes according to programs recorded in the ROM 4 of the storage unit 12. The RAM 5 of the storage unit 12 also appropriately stores data necessary for the CPU 11 to execute various processes.

入力部13は、入力キー群2を備え、押下されたキーに対応する操作信号をCPU11に出力する。 The input unit 13 includes an input key group 2 and outputs an operation signal corresponding to a pressed key to the CPU 11.

表示部14は、ディスプレイ3と、DD6(Display Driver)を備える。表示部14は、CPU11から出力される表示信号に従ってディスプレイ3に数値や文字列を表示する。具体的には、CPU11からDD6に表示信号が出力され、DD6が表示信号に基づきディスプレイ3を制御して各種情報を表示させる。 The display unit 14 includes a display 3 and a DD6 (Display Driver). The display unit 14 displays numerical values and character strings on the display 3 according to display signals output from the CPU 11. Specifically, a display signal is output from the CPU 11 to the DD 6, and the DD 6 controls the display 3 based on the display signal to display various information.

表示部14は、状態表示部141と、数値表示部142と、単位表示部143と、を備える。状態表示部141は、図1におけるディスプレイ3の左側の領域に数値の入力項目や出力項目、補正の有無等の数値の状態等を表示し、数値表示部142はディスプレイ3の中央の領域に数値を表示し、単位表示部143はディスプレイ3の右側の領域に数値表示部142が表示した数値の単位を表示する。 The display section 14 includes a status display section 141, a numerical value display section 142, and a unit display section 143. The status display section 141 displays the status of numerical values, such as numerical input items, output items, and the presence or absence of correction, in the left area of the display 3 in FIG. The unit display unit 143 displays the unit of the numerical value displayed by the numerical value display unit 142 in the right area of the display 3.

[機能ブロック]
次に、電卓1に含まれる機能ブロックについて図3を参照しながら説明する。図3は、電卓1の機能的構成のうち、必要に応じて入力値である第1の数値の変換を行うとともに、BMI計算処理を実行するための機能的構成を示す機能ブロック図である。BMI計算処理とは、BMIを計算する一連の処理をいう。
[Functional block]
Next, functional blocks included in the calculator 1 will be explained with reference to FIG. 3. FIG. 3 is a functional block diagram illustrating a functional configuration of the calculator 1 for converting a first numerical value that is an input value as needed and executing a BMI calculation process. BMI calculation processing refers to a series of processing for calculating BMI.

本実施形態では、CPU11において、モード切替部111と、記憶制御部112と、合理性判定部113と、変換部114と、BMI算出部115と、表示制御部116と、補正値読出部117が機能し、BMIを計算する処理が実現される。 In this embodiment, the CPU 11 includes a mode switching section 111, a storage control section 112, a rationality determination section 113, a conversion section 114, a BMI calculation section 115, a display control section 116, and a correction value reading section 117. The process of calculating BMI is realized.

モード切替部111は、ユーザが押下したモード切替キー24に応じて各種計算処理を行うモードに切り替える。各種計算処理を行うモードに切り替わると、モード切替部111は、第1の数値が入力される入力項目と当該入力項目に予め設定される単位を定める。入力項目には、例えば、身長や体重等の入力される情報の属性が設定される。本実施形態のBMI計算処理モードでは、属性が身長であって予め設定される単位がmである入力項目と、属性が体重であって単位がkgである入力項目が設定される。また、BMI計算処理モードでは、身長の入力項目が変換部114による変換対象に設定される対象入力項目であり、体重の入力項目が変換部114による変換対象に設定されていない非対象入力項目である。BMI計算処理を行う場合、モード切替キー24の[BMI]キーが押下されて入力部13が操作信号を受け付けると、モード切替部111はBMI計算処理モードに切り替える。そして、身長の入力項目に第1の数値である身長H1が入力された場合、CPU11は身長H1が合理的であるか否かを判定する。一方、体重の入力項目に第1の数値である体重Wが入力された場合、CPU11は体重Wが合理的であるか否かを判定しない。 The mode switching unit 111 switches to a mode in which various calculation processes are performed in accordance with the mode switching key 24 pressed by the user. When switching to a mode in which various calculation processes are performed, the mode switching unit 111 determines an input item into which a first numerical value is input and a unit to be set in advance for the input item. For example, attributes of information to be input, such as height and weight, are set in the input items. In the BMI calculation processing mode of this embodiment, an input item whose attribute is height and whose preset unit is m, and an input item whose attribute is weight and whose unit is kg are set. Furthermore, in the BMI calculation processing mode, the height input item is a target input item that is set as a conversion target by the conversion unit 114, and the weight input item is a non-target input item that is not set as a conversion target by the conversion unit 114. be. When performing BMI calculation processing, when the [BMI] key of the mode switching keys 24 is pressed and the input unit 13 receives an operation signal, the mode switching unit 111 switches to the BMI calculation processing mode. When the height H1, which is the first numerical value, is input in the height input field, the CPU 11 determines whether or not the height H1 is reasonable. On the other hand, when the first numerical value, ie, the weight W, is input in the weight input field, the CPU 11 does not determine whether the weight W is reasonable.

記憶制御部112は、ユーザの操作により入力された第1の数値や変換部114によって変換された第2の数値等の記憶部12への記憶を制御する。記憶部12は、入力された値が記憶される入力値記憶部121と、BMIの計算に用いる値が記憶されるBMI計算用記憶部122とを有する。本実施形態では、記憶制御部112は、ユーザの操作により体重の入力項目に体重Wが入力されると、当該体重Wを入力値記憶部121の一領域である体重メモリ123に記憶する。また、記憶制御部112は、ユーザの操作により身長の入力項目に身長H1が入力されると、当該身長H1を入力値記憶部121の一領域である身長メモリ124に記憶する。また、記憶制御部112は、BMIの計算を実行するために、体重メモリ123に記憶された体重WをBMI計算用記憶部122の一領域である第1計算メモリ125に移動する。また、記憶制御部112は、身長メモリ124に記憶された身長H1をBMI計算用記憶部122の一領域である第2計算メモリ126に移動する。記憶制御部112は、身長H1が変換部114によって第2の数値である身長H2に変換されると、当該身長H2をBMI計算用記憶部122の一領域である補正値メモリ127に記憶する。 The storage control unit 112 controls the storage of the first numerical value input by the user's operation, the second numerical value converted by the conversion unit 114, etc. in the storage unit 12. The storage unit 12 includes an input value storage unit 121 in which input values are stored, and a BMI calculation storage unit 122 in which values used in BMI calculation are stored. In this embodiment, when the weight W is input into the weight input field by the user's operation, the storage control unit 112 stores the weight W in the weight memory 123, which is an area of the input value storage unit 121. Furthermore, when the height H1 is input in the height input field by the user's operation, the storage control unit 112 stores the height H1 in the height memory 124, which is an area of the input value storage unit 121. Furthermore, the storage control unit 112 moves the weight W stored in the weight memory 123 to the first calculation memory 125, which is an area of the BMI calculation storage unit 122, in order to calculate the BMI. Furthermore, the storage control unit 112 moves the height H1 stored in the height memory 124 to the second calculation memory 126, which is an area of the BMI calculation storage unit 122. When the height H1 is converted into the second numerical value H2 by the conversion unit 114, the storage control unit 112 stores the height H2 in the correction value memory 127, which is an area of the BMI calculation storage unit 122.

合理性判定部113は、ユーザの操作により入力された身長H1が当該身長H1に対応する単位において合理的な範囲であるか否かを判定する。本実施形態では、合理性判定部113は、身長H1が数値範囲の条件を満たすか否かを判定する。数値範囲は、身長H1が入力される入力項目の属性と単位に応じて定まる。即ち、合理性判定部113は、身長H1に対応する単位以外にも入力項目を参照し、身長H1が入力項目に入力される数値としても合理的な範囲であるか否かを判定する。合理性判定部113は、身長H1が数値範囲の条件を満たす場合に、当該身長H1が合理的であると判定する。反対に、合理性判定部113は、身長H1が数値範囲の条件を満たさない場合に、当該身長H1が不合理であると判定する。具体的には、合理性判定部113は、身長H1の整数部分が1桁である場合に当該身長H1が合理的であると判定し、身長H1の整数部分が2桁以上又は0である場合に当該身長H1が不合理であると判定する。なお、本明細書において「合理的な範囲」とは、入力値が当該入力値に対応する単位と照らし合わせて所定の基準を逸脱していない範囲をいう。例えば、本実施形態の変換対象である身長では、単位であるmと照らし合わせて1桁を超える場合や1桁未満である場合に、成人の身長における基準を逸脱するので不合理と判定される。 The rationality determination unit 113 determines whether the height H1 input by the user's operation is within a reasonable range in units corresponding to the height H1. In this embodiment, the rationality determining unit 113 determines whether the height H1 satisfies the numerical range condition. The numerical range is determined according to the attribute and unit of the input item in which the height H1 is input. That is, the rationality determining unit 113 refers to the input items in addition to the units corresponding to the height H1, and determines whether the height H1 is within a reasonable range as a numerical value input to the input item. The rationality determining unit 113 determines that the height H1 is reasonable when the height H1 satisfies the condition of the numerical range. On the contrary, if the height H1 does not satisfy the numerical range conditions, the rationality determination unit 113 determines that the height H1 is unreasonable. Specifically, the rationality determining unit 113 determines that the height H1 is reasonable if the integer part of the height H1 is one digit, and if the integer part of the height H1 is two or more digits or 0. It is determined that the height H1 is unreasonable. Note that in this specification, a "reasonable range" refers to a range in which an input value does not deviate from a predetermined standard when compared with a unit corresponding to the input value. For example, in the case of the height to be converted in this embodiment, if it is more than one digit or less than one digit compared to the unit m, it is determined to be unreasonable because it deviates from the standard for adult height. .

変換部114は、合理性判定部113によって第1の数値が不合理であると判定された場合に、当該第1の数値を予め設定された対応関係により第2の数値に変換する。本明細書において「対応関係」とは、第1の数値と当該第1の数値が変換された第2の数値との間の関係である。例えば、本実施形態では、第1の数値は第2の数値の100倍の値であるという対応関係である。即ち、合理性判定部113によって身長H1が不合理であると判定された場合に、変換部114は当該身長H1を100で割って身長H2に変換する。 The conversion unit 114 converts the first numerical value into a second numerical value according to a preset correspondence relationship when the first numerical value is determined to be unreasonable by the rationality determination unit 113. In this specification, "correspondence" is a relationship between a first numerical value and a second numerical value obtained by converting the first numerical value. For example, in this embodiment, the correspondence relationship is such that the first numerical value is 100 times the second numerical value. That is, when the height H1 is determined to be unreasonable by the rationality determination unit 113, the conversion unit 114 divides the height H1 by 100 to convert the height H1 to the height H2.

BMI算出部115は、合理性判定部113によって合理的であると判定された第1の数値又は不合理であると判定され、変換部114によって変換された第2の数値を変数の1つとして所定の計算式に基づいて計算を行う。具体的には、BMI算出部115は、(1)式に体重の入力項目に入力した体重Wを(体重kg)に代入し、身長の入力項目に入力した身長H1又は変換部114によって変換された身長H2を(身長m)に代入して計算を行う。
BMI=(体重kg)/(身長m)・・・(1)
The BMI calculation unit 115 uses the first numerical value determined to be reasonable by the rationality determination unit 113 or the second numerical value determined to be unreasonable and converted by the conversion unit 114 as one of the variables. Calculation is performed based on a predetermined calculation formula. Specifically, the BMI calculation unit 115 substitutes the weight W input into the weight input field into (weight kg) in equation (1), and calculates the height H1 input into the height input field or the height H1 input into the height input field or the height H1 input into the height input field or the height H1 input into the height input field. Calculation is performed by substituting the calculated height H2 into (height m).
BMI=(Weight kg)/(Height m) 2 ...(1)

表示制御部116は、数値や計算結果等の情報をBMI計算用記憶部122の一領域である表示メモリ128に記憶し、表示部14に表示信号を送信して表示部14の機能を制御する。 The display control unit 116 stores information such as numerical values and calculation results in the display memory 128, which is an area of the BMI calculation storage unit 122, and transmits display signals to the display unit 14 to control the functions of the display unit 14. .

補正値読出部117は、BMI算出部115の一部であり、BMIが計算された後で補正値メモリ127に記憶された身長H2を読み出す。 The correction value reading unit 117 is a part of the BMI calculation unit 115, and reads out the height H2 stored in the correction value memory 127 after the BMI has been calculated.

次に、図4を参照して電卓1のCPU11によるBMI計算処理の流れについて説明する。図4は機能的構成を有する電卓1が実行するBMI計算処理の流れを説明するフローチャートである。 Next, the flow of BMI calculation processing by the CPU 11 of the calculator 1 will be described with reference to FIG. FIG. 4 is a flowchart illustrating the flow of BMI calculation processing executed by the calculator 1 having a functional configuration.

ユーザがモード切替キー24の[BMI]キーを押下すると、入力部13からの操作信号をモード切替部111が受けて、BMI計算処理モードに切り替わり、BMI計算処理が開始される。 When the user presses the [BMI] key of the mode switching key 24, the mode switching unit 111 receives an operation signal from the input unit 13, switches to the BMI calculation processing mode, and starts BMI calculation processing.

ステップS11において、記憶制御部112は、体重メモリ123に記憶された体重Wを読み出し、第1計算メモリ125に格納する。 In step S<b>11 , the storage control unit 112 reads out the weight W stored in the weight memory 123 and stores it in the first calculation memory 125 .

ステップS12において、記憶制御部112は、身長メモリ124に記憶された身長H1を読み出し、第2計算メモリ126に格納する。 In step S12, the storage control unit 112 reads the height H1 stored in the height memory 124 and stores it in the second calculation memory 126.

ステップS13において、合理性判定部113は、身長H1の整数部分の桁数に基づき、身長H1が合理的であるか否かを判定する。合理性判定部113は、身長H1の整数部分の桁数が1桁である場合(ステップS13でYes)に、身長H1が合理的であると判定し、処理をステップ18に進める。一方、合理性判定部113は、身長H1の整数部分の桁数が1桁でない場合(ステップS13でNo)に、身長H1が不合理であると判定し、処理をステップS14に進める。 In step S13, the rationality determining unit 113 determines whether the height H1 is reasonable based on the number of digits of the integer part of the height H1. If the number of digits in the integer part of the height H1 is one digit (Yes in step S13), the rationality determination unit 113 determines that the height H1 is reasonable and advances the process to step S18. On the other hand, if the number of digits in the integer part of the height H1 is not one digit (No in step S13), the rationality determination unit 113 determines that the height H1 is unreasonable, and advances the process to step S14.

ステップS14において、変換部114は、第2計算メモリ126から身長H1を読み出し、身長H1を100で割ることで身長H2に変換する。 In step S14, the conversion unit 114 reads the height H1 from the second calculation memory 126, and converts the height H1 into the height H2 by dividing the height H1 by 100.

ステップS15において、合理性判定部113は、身長H2の整数部分の桁数に基づき、身長H2が合理的であるか否かを判定する。合理性判定部113は、身長H2の整数部分の桁数が1桁である場合(ステップS15でYes)に、身長H2が合理的であると判定し、処理をステップS17に進める。一方、合理性判定部113は、身長H1の整数部分の桁数が1桁でない場合(ステップS15でNo)に、身長H2が不合理であると判定し、ステップS18に処理を進める。このとき、合理性判定部113は、表示部14に表示信号を送信し、状態表示部141に「(補正範囲外)」と表示される。 In step S15, the rationality determining unit 113 determines whether the height H2 is reasonable based on the number of digits of the integer part of the height H2. If the number of digits in the integer part of the height H2 is one digit (Yes in step S15), the rationality determination unit 113 determines that the height H2 is reasonable and advances the process to step S17. On the other hand, if the number of digits in the integer part of the height H1 is not one digit (No in step S15), the rationality determination unit 113 determines that the height H2 is unreasonable, and advances the process to step S18. At this time, the rationality determination unit 113 transmits a display signal to the display unit 14, and the status display unit 141 displays “(outside correction range)”.

ステップS16において、記憶制御部112は、身長H1から変換した身長H2を第2計算メモリ126に記憶する。また、記憶制御部112は、身長H2を補正値メモリ127に記憶する。 In step S16, the storage control unit 112 stores the height H2 converted from the height H1 in the second calculation memory 126. Furthermore, the storage control unit 112 stores the height H2 in the correction value memory 127.

ステップS17において、変換部114は、身長H1を身長H2に変換したことを示す補正済みフラグをオンにする。 In step S17, the conversion unit 114 turns on the corrected flag indicating that the height H1 has been converted to the height H2.

ステップS18において、BMI算出部115は、第1計算メモリ125に記憶された体重Wと、第2計算メモリ126に記憶された身長H1又は身長H2を変数とした式(1)に基づきBMIを算出する。 In step S18, the BMI calculation unit 115 calculates the BMI based on formula (1) using the weight W stored in the first calculation memory 125 and the height H1 or height H2 stored in the second calculation memory 126 as variables. do.

ステップS19において、表示制御部116は、BMIの計算結果を表示メモリ128に格納し、表示部14に表示信号を送信することで、数値表示部142にBMIの計算結果を表示させる。このとき、ステップS17を経由してBMIの計算が行われた場合には、表示制御部116は補正済みフラグがオンであることを読み取り、BMI計算結果が補正済みであるという情報を表示メモリ128に格納し、状態表示部141に「BMI(補正済み)」と表示させる。一方、ステップS13において合理性判定部113によって身長H1が合理的であると判定された場合には、表示制御部116は状態表示部141に「BMI」と表示させる。 In step S19, the display control unit 116 stores the BMI calculation result in the display memory 128, and transmits a display signal to the display unit 14, thereby causing the numerical display unit 142 to display the BMI calculation result. At this time, if the BMI calculation is performed via step S17, the display control unit 116 reads that the corrected flag is on, and stores information that the BMI calculation result has been corrected in the display memory 128. and displays "BMI (corrected)" on the status display section 141. On the other hand, if the rationality determination unit 113 determines that the height H1 is reasonable in step S13, the display control unit 116 causes the status display unit 141 to display “BMI”.

次に、電卓1のBMI計算処理モードにおけるキー操作に応じてディスプレイ3に表示される表示内容の一例について図5を参照しながら説明する。図5は、左側の列から順にキー操作の内容、状態表示部141の表示、数値表示部142の表示、単位表示部143の表示を示している。図5においてキー操作によって表示される表示内容は同一の行に示される。図5は、身長の入力項目に「1.75」と数値を入力すべきところ、設定された単位を「m」ではなく「cm」であると誤認し、「175」と誤入力するパターンを示している。 Next, an example of display contents displayed on the display 3 in response to key operations in the BMI calculation processing mode of the calculator 1 will be described with reference to FIG. 5. FIG. 5 shows, in order from the left column, the content of key operations, the display on the status display section 141, the display on the numerical display section 142, and the display on the unit display section 143. In FIG. 5, display contents displayed by key operations are shown on the same line. Figure 5 shows a pattern in which the numerical value "1.75" should be entered in the height input field, but the unit is mistakenly recognized as "cm" instead of "m", and the user incorrectly enters "175". It shows.

ユーザは[AC]キーを押下して入力値記憶部121やBMI計算用記憶部122等に格納された情報を消去した後、[BMI]キーを押下する。[BMI]キーが押下されると、状態表示部141に入力項目の属性が身長であることを示す「身長?」が表示され、数値表示部142に「0」が表示され、単位表示部143に「m」が表示される。 The user presses the [AC] key to erase information stored in the input value storage unit 121, BMI calculation storage unit 122, etc., and then presses the [BMI] key. When the [BMI] key is pressed, "Height?" is displayed on the status display section 141 to indicate that the attribute of the input item is height, "0" is displayed on the numerical display section 142, and the unit display section 143 "m" is displayed.

図5に示すように、テンキー20の[1][7][5]が押下されると、数値表示部142の表示が「0」から「175」に変更される。そして、入力キー21の[入力]が押下されると、身長H1である「175」が身長メモリ124に記憶されるとともに、状態表示部141に入力項目の属性が体重であることを示す「体重?」が表示され、数値表示部142に「0」が表示され、単位表示部143に「kg」が表示される。 As shown in FIG. 5, when [1], [7], and [5] on the numeric keypad 20 are pressed, the display on the numerical display section 142 changes from "0" to "175". When [Input] of the input key 21 is pressed, the height H1 "175" is stored in the height memory 124, and the status display section 141 displays "Weight" indicating that the attribute of the input item is weight. ?" is displayed, "0" is displayed on the numerical display section 142, and "kg" is displayed on the unit display section 143.

図5に示すように、テンキー20の[7][0]が押下されると、数値表示部142の表示が「0」から「70」に変更される。そして、入力キー21の[入力]が押下されると、体重Wである「70」が体重メモリ123に記憶されるとともに、BMI計算処理が開始される。BMI計算処理は、図4に示す上述した処理の流れで実行される。 As shown in FIG. 5, when [7] and [0] on the numeric keypad 20 are pressed, the display on the numerical display section 142 changes from "0" to "70". When the input key 21 is pressed, "70", which is the weight W, is stored in the weight memory 123, and the BMI calculation process is started. The BMI calculation process is executed according to the above-described process flow shown in FIG.

図5の例では、身長の入力項目に2桁以上の整数部分を有する身長H1である「175」が入力されたので、合理性判定部113が身長H1を不合理であると判定し、変換部114が身長H2である「1.75」に変換する。そして、体重Wである「70kg」と身長H2である「1.75m」を用いた(1)式に基づきBMIが算出される。この結果、図5に示すように、状態表示部141に「BMI(補正済み)」が表示され、数値表示部142にBMIの計算結果である「22.285714285」が表示される。 In the example of FIG. 5, since "175", which is the height H1 having an integer part of two or more digits, is input in the height input item, the rationality determination unit 113 determines that the height H1 is unreasonable, and converts it. The part 114 is converted to "1.75" which is the height H2. Then, the BMI is calculated based on equation (1) using the weight W of "70 kg" and the height H2 of "1.75 m". As a result, as shown in FIG. 5, "BMI (corrected)" is displayed on the status display section 141, and "22.285714285", which is the BMI calculation result, is displayed on the numerical display section 142.

ここで、従来の電卓でBMI計算処理を行う場合のキー操作の内容と当該キー操作に応じてディスプレイ3に表示される表示内容について図6を参照しながら説明する。従来の電卓は電卓1と比べて合理性判定部113及び変換部114を備えていない点が主に異なる。図5と重複するキー操作及び表示内容については、説明を省略する。 Here, the content of key operations when performing BMI calculation processing on a conventional calculator and the display content displayed on the display 3 in response to the key operations will be described with reference to FIG. 6. The main difference between the conventional calculator and the calculator 1 is that it does not include the rationality determining section 113 and the converting section 114. Descriptions of key operations and display contents that overlap those in FIG. 5 will be omitted.

図6に示すように、テンキー20の[1][7][5]を押下して身長の入力項目に身長H1を入力すると、数値表示部142の表示が「0」から「175」に変更される。入力キー21の[入力]を押下すると、身長H1である「175」が身長メモリ124に記憶されるとともに、状態表示部141に体重の入力項目であることを示す「体重?」が表示され、数値表示部142に「0」が表示され、単位表示部143に「kg」が表示される。 As shown in FIG. 6, when you press [1], [7], and [5] on the numeric keypad 20 and enter height H1 in the height input field, the display on the numerical display section 142 changes from "0" to "175". be done. When [Input] of the input key 21 is pressed, the height H1 "175" is stored in the height memory 124, and "Weight?" is displayed on the status display section 141 to indicate that it is a weight input item. "0" is displayed on the numerical display section 142, and "kg" is displayed on the unit display section 143.

テンキー20の[7][0]を押下すると、数値表示部142の表示が「0」から「70」に変更される。入力キー21の[入力]を押下すると、体重Wである「70」が体重メモリ123に記憶されるとともに、BMI計算処理が開始される。 When [7] and [0] on the numeric keypad 20 are pressed, the display on the numerical display section 142 is changed from "0" to "70". When [Enter] of the input key 21 is pressed, the weight W "70" is stored in the weight memory 123, and the BMI calculation process is started.

図6の例では、電卓1のように身長H1を身長H2に変換せずに、体重Wである「70kg」と身長H1である「175m」を用いた(1)式に基づきBMIが算出される。この結果、図6に示すように、状態表示部141に「BMI」が表示され、数値表示部142にBMIの算出結果である「0.002285714」が表示される。 In the example in Figure 6, the BMI is calculated based on formula (1) using the weight W "70 kg" and the height H1 "175 m" without converting height H1 to height H2 as in Calculator 1. Ru. As a result, as shown in FIG. 6, "BMI" is displayed on the status display section 141, and "0.002285714", which is the BMI calculation result, is displayed on the numerical display section 142.

図6に示すように、従来の電卓では、ユーザが設定された単位を誤って身長H1を入力した場合、実際の100倍の数値が身長H1として入力され、実際の1/10000の数値がBMIとして出力される。 As shown in Figure 6, in conventional calculators, if the user inputs the height H1 in the wrong unit, a value 100 times the actual height is input as the height H1, and the actual value 1/10000 is used as the BMI. is output as

一方、図5に示すように、本実施形態の電卓1では、ユーザが設定された単位を誤認して身長H1を入力した場合であっても、その整数部分の桁数から身長H1の合理性を判定し、100で割った値に自動変換するので、適切なBMIを得ることができる。 On the other hand, as shown in FIG. 5, in the calculator 1 of the present embodiment, even if the user misidentifies the set unit and inputs the height H1, the rationality of the height H1 can be calculated based on the number of digits in the integer part. Since the BMI is determined and automatically converted to a value divided by 100, an appropriate BMI can be obtained.

次に、図7を参照しながら電卓1のCPU11による補正値表示処理の流れについて説明する。図7は図3の機能的構成を有する電卓1が実行するBMI計算処理における補正値再表示処理の流れを示すフローチャートである。 Next, the flow of correction value display processing by the CPU 11 of the calculator 1 will be described with reference to FIG. FIG. 7 is a flowchart showing the flow of the correction value redisplay process in the BMI calculation process executed by the calculator 1 having the functional configuration shown in FIG.

補正値再表示処理とは、電卓1のBMI計算処理において変換部114による第1の数値から第2の数値への変換が行われ、BMIが算出された後で、第2の数値を再度読み出し、ディスプレイ3に表示する処理である。 The correction value redisplay process is a process in which the conversion unit 114 converts a first numerical value into a second numerical value in the BMI calculation process of the calculator 1, and after the BMI has been calculated, the second numerical value is read out again. , is a process of displaying on the display 3.

ステップS21において、補正値読出部117は、補正値メモリ127に記憶された身長H2を読み出し、表示メモリ128に記憶する。このとき、補正値読出部117は、補正済みフラグがオンであることを読み取り、表示メモリ128に「値が補正済み」であるという情報を記憶する。 In step S21, the correction value reading unit 117 reads the height H2 stored in the correction value memory 127 and stores it in the display memory 128. At this time, the correction value reading unit 117 reads that the corrected flag is on, and stores information that "the value has been corrected" in the display memory 128.

ステップS22において、補正値読出部117は、身長H1を身長H2に変換したことを示す補正済みフラグをオフにする。 In step S22, the correction value reading unit 117 turns off the corrected flag indicating that the height H1 has been converted to the height H2.

ステップS23において、表示制御部116は、表示メモリ128に記憶された身長H2と「値が補正済み」であるという情報を読み出し、表示部14に表示信号を送信する。この結果、表示部14の状態表示部141に「身長?(補正済み)」と表示され、数値表示部142に身長H2が表示される。 In step S23, the display control unit 116 reads out the height H2 stored in the display memory 128 and the information that “the value has been corrected”, and transmits a display signal to the display unit 14. As a result, "Height? (corrected)" is displayed on the status display section 141 of the display section 14, and the height H2 is displayed on the numerical display section 142.

次に、電卓1のBMI計算処理モードにおいて補正値再表示処理を実行し、再びBMI計算処理を実行した場合のキー操作に応じてディスプレイ3に表示される表示内容の一例について図8を参照しながら説明する。図8は、図5の例と同様に身長の入力項目に「1.75」と数値を入力すべきところ、設定された単位を「m」ではなく「cm」であると誤認し、「175」と誤入力するパターンである。なお、1度目のBMIが算出されるまでの流れは、図5の場合と重複するので説明を省略する。 Next, refer to FIG. 8 for an example of display contents displayed on the display 3 in response to key operations when the correction value redisplay process is executed in the BMI calculation process mode of the calculator 1 and the BMI calculation process is executed again. I will explain. In Fig. 8, when the numerical value "1.75" should be entered in the input field for height, similar to the example in Fig. 5, the set unit is mistakenly recognized as "cm" instead of "m", and "175" is entered. ” This is a pattern of incorrect input. Note that the flow until the first BMI is calculated is the same as that shown in FIG. 5, so the explanation will be omitted.

図8に示すように、身長の入力項目に身長H1である「175」を入力し、体重の入力項目に体重Wである「70」を入力してBMI計算処理を実行すると、変換部114によって身長H1である「175」が身長H2である「1.75」に変換される。そして、状態表示部141に「BMI(補正済み)」が表示され、数値表示部142にBMIの計算結果である「22.285714285」が表示される。 As shown in FIG. 8, when the height H1 (175) is entered in the height input field and the weight W (70) is entered in the weight input field to execute the BMI calculation process, the conversion unit 114 The height H1 of "175" is converted to the height H2 of "1.75". Then, "BMI (corrected)" is displayed on the status display section 141, and "22.285714285", which is the BMI calculation result, is displayed on the numerical display section 142.

図8に示すように、入力キー21の[入力]が押下されると、補正値読出部117によって補正値メモリ127に記憶された身長H2が読み出され、状態表示部141に「身長?(補正済み)」が表示され、数値表示部142に身長H2である「1.75」が表示される。 As shown in FIG. 8, when the [input] of the input key 21 is pressed, the height H2 stored in the correction value memory 127 is read out by the correction value reading unit 117, and the status display unit 141 displays “Height?” "Corrected)" is displayed, and "1.75", which is the height H2, is displayed on the numerical display section 142.

入力キー21の[入力]が押下されると、身長H2が第2計算メモリ126に記憶されるとともに、状態表示部141に体重の入力項目であることを示す「体重?」が表示され、数値表示部142に前回入力された「70」が表示され、単位表示部143に「kg」が表示される。 When [Input] of the input key 21 is pressed, the height H2 is stored in the second calculation memory 126, and "Weight?" is displayed on the status display section 141 to indicate that it is a weight input item, and the numerical value is The last input "70" is displayed on the display section 142, and "kg" is displayed on the unit display section 143.

図8に示すように、テンキー20の[6][5]が押下されると、数値表示部142の表示が「70」から「65」に変更される。そして、入力キー21の[入力]が押下されると、体重Wである「65」が体重メモリ123に記憶されるとともに、BMI計算処理が開始される。BMI計算処理は、図4に示す上述した処理の流れで実行される。 As shown in FIG. 8, when [6] and [5] on the numeric keypad 20 are pressed, the display on the numerical display section 142 is changed from "70" to "65". When the input key 21 is pressed, "65", which is the weight W, is stored in the weight memory 123, and the BMI calculation process is started. The BMI calculation process is executed according to the above-described process flow shown in FIG.

図8の例では、BMI算出部115の補正値読出部117によって補正値メモリ127から読み出された身長H2である「1.75」と新たに入力された体重Wである「65」を変数とした(1)式に基づきBMIが算出される。この結果、図5に示すように、状態表示部141に「BMI(補正済み)」が表示され、数値表示部142にBMIの算出結果である「21.22448979」が表示される。 In the example of FIG. 8, "1.75" which is the height H2 read from the correction value memory 127 by the correction value reading unit 117 of the BMI calculation unit 115 and “65” which is the newly input weight W are used as variables. BMI is calculated based on equation (1). As a result, as shown in FIG. 5, "BMI (corrected)" is displayed on the status display section 141, and "21.22448979", which is the BMI calculation result, is displayed on the numerical display section 142.

以上、説明したように、電卓は以下の効果を奏する。
即ち、本実施形態の電卓1は、ユーザの操作により入力された身長H1が当該身長H1に対応する単位に対して合理的な範囲であるか否かを判定する合理性判定部113と、合理性判定部113によって身長H1が不合理であると判定された場合に、身長H1が当該身長H1に対応する単位に対して合理的な範囲となるように、予め設定された対応関係によって前記第1の数値を第2の数値に変換するか又は前記第1の数値の単位を変換する変換手段と、を備える。これにより、入力された数値が設定された単位に対して合理的な範囲であるか否か判定し、不合理である場合に身長H2に変換できるので、設定された単位を誤認して数値を誤入力した場合であっても、より適切な数値に自動的に修正できる。
As explained above, the calculator has the following effects.
That is, the calculator 1 of the present embodiment includes a rationality determination unit 113 that determines whether the height H1 input by the user's operation is within a reasonable range with respect to the unit corresponding to the height H1; When the height H1 is determined to be unreasonable by the sex determination unit 113, the height H1 is determined according to a preset correspondence relationship so that the height H1 falls within a reasonable range with respect to the unit corresponding to the height H1. and converting means for converting the numerical value of 1 into a second numerical value or converting the unit of the first numerical value. This allows you to determine whether the input value is within a reasonable range for the set unit, and if it is unreasonable, convert it to height H2. Even if you make an incorrect input, it can be automatically corrected to a more appropriate value.

合理性判定部113は、身長H1が入力される入力項目を参照し、当該入力項目に入力される数値として合理的な範囲であるか否かを判定する。これにより、数値と単位の関係だけでなく、数値が入力される入力項目を考慮に入れて合理的な範囲であるか否かを判定するため、より精度の高い合理性の判定が可能となる。 The rationality determining unit 113 refers to the input item into which the height H1 is input, and determines whether the height H1 is within a reasonable range as a numerical value input to the input item. This makes it possible to judge rationality with higher accuracy because it takes into account not only the relationship between numbers and units but also the input items into which the numbers are entered to determine whether they are within a reasonable range. .

また、合理性判定部113は、身長H1が入力項目に設定される属性と単位に基いて設定される数値範囲の条件を満たさない場合に身長H1が不合理であると判定し、身長H1が数値範囲の条件を満たす場合に身長H1が合理的であると判定する。これにより、数値範囲の条件を満たさないと不合理であると判定されるので、設定した範囲から外れた入力値を確実に修正できる。 Furthermore, the rationality determining unit 113 determines that the height H1 is unreasonable when the height H1 does not satisfy the condition of the numerical range set based on the attribute and unit set as the input item, and the height H1 is determined to be unreasonable. If the condition of the numerical range is satisfied, it is determined that the height H1 is reasonable. As a result, it is determined that the input value is unreasonable if the condition of the numerical range is not satisfied, so that input values that fall outside the set range can be reliably corrected.

また、合理性判定部113は、身長H1の桁数に基づいて身長H1が数値範囲の条件に入るか否かを判定する。これにより、桁数を誤って入力した場合であっても、より適切な数値に修正できる。 Furthermore, the rationality determining unit 113 determines whether the height H1 falls within the numerical range condition based on the number of digits of the height H1. With this, even if you enter the wrong number of digits, you can correct it to a more appropriate value.

また、電卓1は、合理性判定部113によって合理的であると判定された身長H1、不合理であると判定され、変換部114によって変換された身長H2、又は不合理であると判定され、変換部114によって変換された単位が設定された身長H1を用いた式(1)に基いて計算を行うBMI算出部115を更に備える。これにより、設定された単位を誤認して数値を誤入力した場合であっても、より適切な計算結果を得ることができる。 In addition, the calculator 1 has a height H1 determined to be reasonable by the rationality determination unit 113, a height H2 determined to be unreasonable and converted by the conversion unit 114, or a height H2 determined to be unreasonable, The computer further includes a BMI calculation unit 115 that performs calculation based on equation (1) using the height H1 set to the unit converted by the conversion unit 114. This makes it possible to obtain more appropriate calculation results even if the user misidentifies the set unit and inputs a numerical value incorrectly.

また、電卓1は、変換部114によって変換された身長H2を記憶する補正値メモリ127を更に備え、BMI算出部115は、式(1)に基づく計算に用いられ、補正値メモリ127に記憶された身長H2を読み出して、式(1)に基づいて計算に用いる。これにより、身長の値が同じBMIを繰り返し測定する場合に、適正な値に補正された数値を使用できるので、再び数値を入力し合理性を判定する処理を省くことができ、処理の効率化を実現できる。 The calculator 1 further includes a correction value memory 127 that stores the height H2 converted by the conversion unit 114, and the BMI calculation unit 115 is used for calculation based on formula (1) and is stored in the correction value memory 127. The height H2 is read out and used for calculation based on equation (1). As a result, when the same height value is repeatedly measured for BMI, it is possible to use a value that has been corrected to an appropriate value, making it possible to eliminate the process of inputting the value again and determining its rationality, increasing the efficiency of the process. can be realized.

また、電卓1は、複数の入力項目を表示する表示部14を更に備え、合理性判定部113は、複数の入力項目のうち、変換対象に設定される対象入力項目に身長H1が入力された場合に合理的であるか否かを判定し、複数の入力項目のうち、変換対象に設定されていない非対象入力項目に体重Wが入力された場合には合理的であるか否かを判定しない。これにより、入力項目の属性によって合理性の判定対象を選択できるので、ユーザが誤入力する可能性の低い入力項目を合理性の判定対象から除外できる。よって、CPU11の処理負担を軽減し、処理の効率化を実現できる。 The calculator 1 further includes a display unit 14 that displays a plurality of input items, and the rationality determination unit 113 determines that height H1 is input as a target input item to be converted among the multiple input items. If the weight W is input as a non-target input item that is not set as a conversion target among multiple input items, determine whether it is reasonable or not. do not. As a result, the rationality determination target can be selected based on the attribute of the input item, so that input items that are unlikely to be incorrectly input by the user can be excluded from the rationality determination target. Therefore, the processing load on the CPU 11 can be reduced and processing efficiency can be improved.

以上、本発明の実施形態について説明したが、本発明は、上述の実施形態に制限されるものではなく、適宜変更が可能である。 Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and can be modified as appropriate.

上述の実施形態では、ユーザの操作により入力部13に第1の数値が入力されるが、第1の数値とともに当該第1の数値に対応する単位が入力され、合理性判定部113は単位が第1の数値に対して合理的な範囲か否か判定する構成としてもよい。 In the above-described embodiment, the first numerical value is input into the input unit 13 by the user's operation, and the unit corresponding to the first numerical value is input together with the first numerical value, and the rationality determination unit 113 determines that the unit is It may be configured to determine whether or not the first numerical value is within a reasonable range.

また、上述の実施形態では、合理性判定部113によって第1の数値が不合理であると判定された場合に、変換部114は第1の数値を第2の数値に変換するが、第1の数値の単位を変換してもよい。例えば、入力部13に身長H1を「175m」と誤って入力した場合に、変換部114は、身長H1の単位をcmに変換して「175cm」としてもよい。これにより、入力された数値が対応する単位に対して不合理であっても、入力された数値に単位を合せることができ、より適正なデータに自動的に修正できる。また、BMI算出部115は、変換部114によって変換された単位が設定された身長H1である「175cm」を用いた式(1)に基いてBMIを計算してもよい。また、記憶制御部112は、変換部114によって変換された身長H1の単位を補正値メモリ127に記憶してもよい。また、BMI算出部115は、補正値メモリ127に記憶された単位が設定された身長H1を読み出して、式(1)に基くBMI計算に用いてもよい。さらに、表示部14は、身長の入力項目に記憶部に記憶された単位が設定された身長H1を表示してもよい。 Further, in the above-described embodiment, when the rationality determining unit 113 determines that the first numerical value is unreasonable, the converting unit 114 converts the first numerical value to the second numerical value. You may convert the unit of the numerical value. For example, if the height H1 is mistakenly input as "175 m" into the input unit 13, the conversion unit 114 may convert the unit of the height H1 into cm and set it as "175 cm". As a result, even if the input numerical value is unreasonable with respect to the corresponding unit, the unit can be matched to the input numerical value, and the data can be automatically corrected to more appropriate data. Further, the BMI calculation unit 115 may calculate the BMI based on formula (1) using “175 cm”, which is the height H1 set as the unit converted by the conversion unit 114. Furthermore, the storage control unit 112 may store the unit of height H1 converted by the conversion unit 114 in the correction value memory 127. Furthermore, the BMI calculation unit 115 may read out the height H1 in which the unit is stored and is stored in the correction value memory 127, and use it for the BMI calculation based on equation (1). Furthermore, the display unit 14 may display the height H1 in which the unit stored in the storage unit is set in the height input item.

また、上述の実施形態では、合理性判定部113は、第1の数値の整数部分の桁数に基づいて第1の数値が数値範囲の条件に入るか否かを判定したが、小数部分の桁数に基づいて判定してもよく、数値範囲の条件は特に制限されない。例えば、1~10である場合に数値範囲の条件を満たし、それ以外の場合に条件を満たさないとしてもよい。 Furthermore, in the above-described embodiment, the rationality determining unit 113 determines whether the first numerical value falls within the numerical range condition based on the number of digits in the integer part of the first numerical value, but the The determination may be made based on the number of digits, and the numerical range conditions are not particularly limited. For example, the numerical range condition may be satisfied when the value is 1 to 10, and the condition may not be satisfied otherwise.

上述の実施形態では、合理性判定部113によって第1の数値が不合理であると判定された場合に、変換部114が第1の数値を100で割って第2の数値に変換したが、第1の数値と第2の数値の対応関係は特に限定されない。例えば、第1の数値は第2の数値の0.5倍であっても、2倍であっても、100倍であってもよい。 In the embodiment described above, when the first numerical value is determined to be unreasonable by the rationality determining unit 113, the converting unit 114 divides the first numerical value by 100 and converts it into the second numerical value. The correspondence between the first numerical value and the second numerical value is not particularly limited. For example, the first numerical value may be 0.5 times, twice, or 100 times the second numerical value.

また、上述の実施形態では、BMIが計算される前に合理性判定部113が身長の入力値である身長H1の合理性を判定したが、合理性判定部113がBMIの計算値が当該計算値に対応する単位に対して合理的であるか否かを判定し、計算値が不合理であった場合に入力値である第1の数値を第2の数値に変換してもよいし、第1の数値の単位を変換してもよい。これにより、BMIの計算値に対して合理性を判定するので、誤った計算結果の出力をより確実に防止できる。 Furthermore, in the above-described embodiment, the rationality determining unit 113 determined the rationality of the height H1, which is the input value of height, before the BMI was calculated, but the rationality determining unit 113 determined that the calculated value of the BMI was It may be determined whether or not the unit corresponding to the value is reasonable, and if the calculated value is unreasonable, the first numerical value that is the input value may be converted to a second numerical value, The unit of the first numerical value may be converted. Thereby, since the rationality of the calculated BMI value is determined, it is possible to more reliably prevent output of erroneous calculation results.

また、上述の実施形態では、本発明が適用される電子機器は、電卓1を例として説明したが、特にこれに限定されない。例えば、本発明は、値が入力される電子機器一般に適用することができる。具体的には、ノート型のパーソナルコンピュータ、プリンタ、テレビジョン受像機、ビデオカメラ、携帯型ナビゲーション装置、携帯電話機、スマートフォン、ポータブルゲーム機、電子レンジ、時計等に適用可能である。 Furthermore, in the embodiments described above, the electronic device to which the present invention is applied has been described using the calculator 1 as an example, but the electronic device is not particularly limited thereto. For example, the present invention can be applied to general electronic devices into which values are input. Specifically, it is applicable to notebook personal computers, printers, television receivers, video cameras, portable navigation devices, mobile phones, smartphones, portable game consoles, microwave ovens, watches, and the like.

[他の変形例]
上述した一連の処理は、ハードウェアにより実行させることもできるし、ソフトウェアにより実行させることもできる。換言すると、図3の機能的構成は例示に過ぎず、特に限定されない。即ち、上述した一連の処理を全体として実行できる機能が電卓1に備えられていれば足り、この機能を実現するためにどのような機能ブロックを用いるのかは特に図の例に限定されない。また、1つの機能ブロックは、ハードウェア単体で構成してもよいし、ソフトウェア単体で構成してもよいし、それらの組み合わせで構成してもよい。
[Other variations]
The series of processes described above can be executed by hardware or software. In other words, the functional configuration in FIG. 3 is merely an example and is not particularly limited. That is, it is sufficient that the calculator 1 has a function that can execute the above-described series of processes as a whole, and what kind of functional blocks are used to realize this function is not particularly limited to the example shown in the figure. Further, one functional block may be configured by a single piece of hardware, a single piece of software, or a combination thereof.

本実施形態における機能的構成は、演算処理を実行するプロセッサによって実現され、本実施形態に用いることが可能なプロセッサには、シングルプロセッサ、マルチプロセッサ及びマルチコアプロセッサ等の各種処理装置単体によって構成されるものの他、これら各種処理装置と、ASIC(Application Specific Integrated Circuit)やFPGA(Field‐Programmable Gate Array)等の処理回路とが組み合わせられたものを含む。 The functional configuration in this embodiment is realized by a processor that executes arithmetic processing, and processors that can be used in this embodiment include various processing units such as a single processor, a multiprocessor, and a multicore processor. In addition, it includes combinations of these various processing devices and processing circuits such as ASICs (Application Specific Integrated Circuits) and FPGAs (Field-Programmable Gate Arrays).

一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、コンピュータ等にネットワークや記録媒体からインストールされる。コンピュータは、専用のハードウェアに組み込まれているコンピュータであってもよい。また、コンピュータは、各種のプログラムをインストールすることで、各種の機能を実行することが可能なコンピュータ、例えば汎用のパーソナルコンピュータであってもよい。 When a series of processes is executed by software, a program constituting the software is installed on a computer or the like from a network or a recording medium. The computer may be a computer built into dedicated hardware. Further, the computer may be a computer that can execute various functions by installing various programs, such as a general-purpose personal computer.

このようなプログラムを含む記録媒体は、ユーザにプログラムを提供するために装置本体とは別に配布される図のリムーバブルメディア31により構成されるだけでなく、装置本体に予め組み込まれた状態でユーザに提供される記録媒体等で構成される。リムーバブルメディア31は、例えば、磁気ディスク(フロッピディスクを含む)、光ディスク、又は光磁気ディスク等により構成される。光ディスクは、例えば、CD-ROM(Compact Disk-Read Only Memory),DVD(Digital Versatile Disk),Blu-ray(登録商標) Disc(ブルーレイディスク)等により構成される。光磁気ディスクは、MD(Mini-Disk)等により構成される。また、装置本体に予め組み込まれた状態でユーザに提供される記録媒体は、例えば、プログラムが記録されている図のROM4や、図の記憶部19に含まれるハードディスク等で構成される。 A recording medium containing such a program is not only constituted by the removable medium 31 shown in the figure, which is distributed separately from the main body of the device in order to provide the program to the user, but also is provided to the user in a state that is pre-installed in the main body of the device. Consists of provided recording media, etc. The removable medium 31 is composed of, for example, a magnetic disk (including a floppy disk), an optical disk, a magneto-optical disk, or the like. Optical disks include, for example, CD-ROMs (Compact Disk-Read Only Memory), DVDs (Digital Versatile Disks), Blu-ray (registered trademark) Discs, and the like. The magneto-optical disk is composed of an MD (Mini-Disk) or the like. Further, the recording medium provided to the user in a pre-installed state in the main body of the apparatus includes, for example, the ROM 4 shown in the figure in which programs are recorded, the hard disk included in the storage unit 19 shown in the figure, and the like.

なお、本明細書において、記録媒体に記録されるプログラムを記述するステップは、その順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的或いは個別に実行される処理をも含むものである。 Note that in this specification, the step of writing a program to be recorded on a recording medium is not only a process that is performed chronologically in accordance with the order, but also a process that is not necessarily performed chronologically but in parallel or individually. It also includes the processing to be executed.

以上、本発明のいくつかの実施形態について説明したが、これらの実施形態は、例示に過ぎず、本発明の技術的範囲を限定するものではない。本発明はその他の様々な実施形態を取ることが可能であり、さらに、本発明の要旨を逸脱しない範囲で、省略や置換等種々の変更を行うことができる。これら実施形態やその変形は、本明細書等に記載された発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although several embodiments of the present invention have been described above, these embodiments are merely illustrative and do not limit the technical scope of the present invention. The present invention can take various other embodiments, and various changes such as omissions and substitutions can be made without departing from the gist of the present invention. These embodiments and their modifications are included within the scope and gist of the invention described in this specification and the like, as well as within the scope of the invention described in the claims and its equivalents.

以下に、本願の出願当初の特許請求の範囲に記載された発明を付記する。
[付記1]
ユーザの操作により入力された第1の数値が当該第1の数値に対応する単位に対して合理的な範囲であるか否かを判定する合理性判定手段と、
前記合理性判定手段によって前記第1の数値が不合理であると判定された場合に、前記第1の数値が当該第1の数値に対応する単位に対して合理的な範囲となるように、予め設定された対応関係によって前記第1の数値を第2の数値に変換するか又は前記第1の数値の単位を変換する変換手段と、
を備える電子機器。
[付記2]
前記合理性判定手段は、
前記第1の数値が入力される入力項目を参照し、前記入力項目に入力される数値として合理的な範囲であるか否かを判定する請求項1に記載の電子機器。
[付記3]
前記合理性判定手段は、前記第1の数値が入力される入力項目に設定される属性と単位に基いて設定される数値範囲の条件を満たさない場合に、前記第1の数値が不合理であると判定し、前記第1の数値が前記数値範囲の条件を満たす場合に、前記第1の数値が合理的であると判定する請求項1に記載の電子機器。
[付記4]
前記合理性判定手段は、前記第1の数値の桁数に基づいて前記第1の数値が前記数値範囲の条件に入るか否かを判定する請求項3に記載の電子機器。
[付記5]
前記合理性判定手段によって合理的であると判定された前記第1の数値、不合理であると判定され、前記変換手段によって変換された第2の数値、又は不合理であると判定され、前記変換手段によって変換された単位が設定された前記第1の数値を用いて、所定の計算式に基いて計算を行う算出手段を更に備える請求項1から4の何れかに記載の電子機器。
[付記6]
前記変換手段によって変換された前記第2の数値又は前記変換手段によって変換された前記第1の数値の単位を記憶する記憶部を更に備え、
前記算出手段は、前記計算式に基く計算に用いられ、前記記憶部に記憶された前記第2の数値、又は前記計算式に基く計算に用いられ、前記記憶部に記憶された前記変換された単位が設定された前記第1の数値を読み出して、前記計算式に基く計算に用いる請求項5に記載の電子機器。
[付記7]
複数の入力項目を表示する表示手段を更に備え、
前記合理性判定手段は、
複数の入力項目のうち、変換対象に設定される対象入力項目に前記第1の数値が入力された場合に合理的であるか否かを判定し、
前記複数の入力項目のうち、変換対象に設定されていない非対象入力項目に前記第1の数値が入力された場合には合理的であるか否かを判定しない請求項1から6の何れかに記載の電子機器。
[付記8]
ユーザの操作により入力された第1の数値を用いて、所定の計算式に基づいて計算を行う算出手段と、
前記算出手段によって算出された計算値が当該計算値に対応する単位に対して合理的な範囲であるか否かを判定する計算値合理性判定手段と、
前記計算値合理性判定手段によって前記計算値が不合理であると判定された場合に、前記計算値が当該計算値に対応する単位に対して合理的な範囲となるように、予め設定された対応関係によって前記第1の数値を第2の数値に変換するか又は前記第1の数値の単位を変換する変換手段と、
を備える電子機器。
[付記9]
電子機器のコンピュータを制御して値を計算する計算方法であって、
ユーザの操作により入力された第1の数値が当該第1の数値に対応する単位に対して合理的な範囲であるか否かを判定する合理性判定ステップと、
前記合理性判定ステップによって前記第1の数値が不合理であると判定された場合に、前記第1の数値が当該第1の数値に対応する単位に対して合理的な範囲となるように、予め設定された対応関係によって前記第1の数値を第2の数値に変換するか又は前記第1の数値の単位を変換する変換ステップと、
を含む計算方法。
[付記10]
ユーザの操作により入力された第1の数値が当該第1の数値に対応する単位に対して合理的な範囲であるか否かを判定する合理性判定機能と、
前記合理性判定機能によって前記第1の数値が不合理であると判定された場合に、前記第1の数値が当該第1の数値に対応する単位に対して合理的な範囲となるように、予め設定された対応関係によって前記第1の数値を第2の数値に変換するか又は前記第1の数値の単位を変換する変換機能と、
をコンピュータに実行させるプログラム。
Below, the invention described in the original claims of this application will be added.
[Additional note 1]
rationality determining means for determining whether a first numerical value input by a user's operation is within a reasonable range for a unit corresponding to the first numerical value;
so that when the first numerical value is determined to be unreasonable by the rationality determining means, the first numerical value is within a reasonable range with respect to the unit corresponding to the first numerical value; Conversion means for converting the first numerical value into a second numerical value or converting the unit of the first numerical value according to a preset correspondence relationship;
Electronic equipment equipped with
[Additional note 2]
The rationality determining means is
The electronic device according to claim 1, wherein the electronic device refers to an input item into which the first numerical value is input, and determines whether the numerical value input into the input item is within a reasonable range.
[Additional note 3]
The rationality determining means determines that the first numerical value is unreasonable when the first numerical value does not satisfy the conditions of the numerical range set based on the attribute and unit set in the input item to which the first numerical value is input. 2. The electronic device according to claim 1, wherein the first numerical value is determined to be reasonable when it is determined that the first numerical value exists and the first numerical value satisfies a condition of the numerical range.
[Additional note 4]
4. The electronic device according to claim 3, wherein the rationality determining means determines whether the first numerical value falls within the conditions of the numerical range based on the number of digits of the first numerical value.
[Additional note 5]
the first numerical value determined to be reasonable by the rationality determining means; the second numerical value determined to be unreasonable and converted by the converting means; or the second numerical value determined to be unreasonable and converted by the converting means. 5. The electronic device according to claim 1, further comprising calculation means for performing calculation based on a predetermined calculation formula using the first numerical value in which the unit converted by the conversion means is set.
[Additional note 6]
further comprising a storage unit that stores the unit of the second numerical value converted by the converting means or the first numerical value converted by the converting means,
The calculation means is configured to calculate the second numerical value used in calculation based on the calculation formula and stored in the storage unit, or the converted numerical value used in calculation based on the calculation formula and stored in the storage unit. The electronic device according to claim 5, wherein the first numerical value in which a unit is set is read out and used for calculation based on the calculation formula.
[Additional note 7]
further comprising display means for displaying a plurality of input items,
The rationality determining means is
Determine whether or not it is reasonable when the first numerical value is input to a target input item set as a conversion target among the plurality of input items,
Any one of claims 1 to 6, wherein if the first numerical value is input to a non-target input item that is not set as a conversion target among the plurality of input items, it is not determined whether or not it is reasonable. Electronic devices listed in .
[Additional note 8]
Calculation means that performs calculation based on a predetermined calculation formula using the first numerical value input by the user's operation;
Calculated value rationality determining means for determining whether the calculated value calculated by the calculating means is within a reasonable range for the unit corresponding to the calculated value;
If the calculated value is determined to be unreasonable by the calculated value rationality determining means, the calculated value is set in advance to be within a reasonable range for the unit corresponding to the calculated value. Conversion means for converting the first numerical value into a second numerical value or converting the unit of the first numerical value according to a correspondence relationship;
Electronic equipment equipped with
[Additional note 9]
A calculation method for calculating values by controlling a computer in an electronic device,
a rationality determination step of determining whether the first numerical value input by the user's operation is within a reasonable range for the unit corresponding to the first numerical value;
If the first numerical value is determined to be unreasonable in the rationality determining step, the first numerical value is within a reasonable range with respect to the unit corresponding to the first numerical value, a conversion step of converting the first numerical value into a second numerical value or converting the unit of the first numerical value according to a preset correspondence relationship;
Calculation methods including.
[Additional note 10]
a rationality determination function that determines whether a first numerical value input by a user operation is within a reasonable range for a unit corresponding to the first numerical value;
so that when the first numerical value is determined to be unreasonable by the rationality determination function, the first numerical value is within a reasonable range with respect to the unit corresponding to the first numerical value; a conversion function that converts the first numerical value into a second numerical value or converts the unit of the first numerical value according to a preset correspondence relationship;
A program that causes a computer to execute.

1 電卓(電子機器)
113 合理性判定部(合理性判定手段)
114 変換部(変換手段)
H1 身長(第1の数値)
H2 身長(第2の数値)
1 Calculator (electronic device)
113 Rationality Judgment Unit (Rationality Judgment Means)
114 Conversion unit (conversion means)
H1 Height (first number)
H2 Height (second number)

Claims (4)

所定の計算式の変数項目にユーザ操作により入力された第1の数値が前記変数項目に対応付けて予め設定されている範囲内にない場合に、前記入力された第1の数値が前記変数項目に対応付けられている第1の単位とは異なる第2の単位で入力されたとものとして、所定の対応関係情報に基づいて前記第1の数値を前記第1の単位に対応させた第2の数値に変換する変換手段と、
前記変換手段により前記第1の数値を変換することで取得した前記第2の数値が前記第1の数値に代えて前記変数項目に入力された前記計算式での計算結果を表示させる表示制御手段と、
を備えることを特徴とする電子機器。
If the first numerical value input by user operation into a variable item of a predetermined calculation formula is not within a range preset in association with the variable item, the input first numerical value is set as the variable item. Assuming that the input is made in a second unit that is different from the first unit associated with a conversion means for converting into a numerical value;
Display control means for displaying a calculation result using the calculation formula in which the second numerical value obtained by converting the first numerical value by the conversion means is input into the variable item instead of the first numerical value. and,
An electronic device characterized by comprising :
表示制御手段は、前記第2の数値が前記変数項目に入力された前記計算式での計算結果を表示させる場合に、前記変数項目での数値が変更されていることを示す情報を前記計算結果とともに表示させる、
ことを特徴とする請求項1に記載の電子機器。
When displaying a calculation result using the formula in which the second numerical value is input to the variable item, the display control means displays information indicating that the numerical value in the variable item has been changed as the calculation result. to be displayed with
The electronic device according to claim 1 , characterized in that :
電子機器が実行する計算方法であって、A calculation method performed by an electronic device, the method comprising:
所定の計算式の変数項目にユーザ操作により入力された第1の数値が前記変数項目に対応付けて予め設定されている範囲内にない場合に、前記入力された第1の数値が前記変数項目に対応付けられている第1の単位とは異なる第2の単位で入力されたとものとして、所定の対応関係情報に基づいて前記第1の数値を前記第1の単位に対応させた第2の数値に変換する変換処理と、If the first numerical value input by user operation into a variable item of a predetermined calculation formula is not within a range preset in association with the variable item, the input first numerical value is set as the variable item. Assuming that the input is made in a second unit that is different from the first unit associated with Conversion processing to convert into numerical values,
前記変換処理で前記第1の数値を変換することで取得した前記第2の数値が前記第1の数値に代えて前記変数項目に入力された前記計算式での計算結果を表示させる表示制御処理と、Display control processing for displaying the calculation result of the calculation formula in which the second numerical value obtained by converting the first numerical value in the conversion process is input into the variable item instead of the first numerical value. and,
を含むことを特徴とする計算方法。A calculation method characterized by comprising:
コンピュータを、computer,
所定の計算式の変数項目にユーザ操作により入力された第1の数値が前記変数項目に対応付けて予め設定されている範囲内にない場合に、前記入力された第1の数値が前記変数項目に対応付けられている第1の単位とは異なる第2の単位で入力されたとものとして、所定の対応関係情報に基づいて前記第1の数値を前記第1の単位に対応させた第2の数値に変換する変換手段、If the first numerical value input by user operation into a variable item of a predetermined calculation formula is not within a range preset in association with the variable item, the input first numerical value is set as the variable item. Assuming that the input is made in a second unit that is different from the first unit associated with conversion means for converting into numerical values;
前記変換手段により前記第1の数値を変換することで取得した前記第2の数値が前記第1の数値に代えて前記変数項目に入力された前記計算式での計算結果を表示させる表示制御手段、Display control means for displaying a calculation result using the calculation formula in which the second numerical value obtained by converting the first numerical value by the conversion means is input into the variable item instead of the first numerical value. ,
として機能させることを特徴とするプログラム。A program characterized by functioning as
JP2020052741A 2020-03-24 2020-03-24 Electronic equipment, calculation methods and programs Active JP7419911B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020052741A JP7419911B2 (en) 2020-03-24 2020-03-24 Electronic equipment, calculation methods and programs
JP2024001183A JP2024024089A (en) 2020-03-24 2024-01-09 Electronic device, display method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020052741A JP7419911B2 (en) 2020-03-24 2020-03-24 Electronic equipment, calculation methods and programs

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2024001183A Division JP2024024089A (en) 2020-03-24 2024-01-09 Electronic device, display method, and program

Publications (3)

Publication Number Publication Date
JP2021152736A JP2021152736A (en) 2021-09-30
JP2021152736A5 JP2021152736A5 (en) 2023-03-01
JP7419911B2 true JP7419911B2 (en) 2024-01-23

Family

ID=77886606

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2020052741A Active JP7419911B2 (en) 2020-03-24 2020-03-24 Electronic equipment, calculation methods and programs
JP2024001183A Pending JP2024024089A (en) 2020-03-24 2024-01-09 Electronic device, display method, and program

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2024001183A Pending JP2024024089A (en) 2020-03-24 2024-01-09 Electronic device, display method, and program

Country Status (1)

Country Link
JP (2) JP7419911B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004230163A (en) 2003-01-27 2004-08-19 Jawon Medical Co Ltd Body component analyzer and body component analyzing method
JP2007128337A (en) 2005-11-04 2007-05-24 Nec Corp Database access device, program and data updating method
JP3176165U (en) 2012-03-29 2012-06-14 株式会社ファーマテックソリューションズジャパン Medical calculator
JP2014213085A (en) 2013-04-26 2014-11-17 株式会社東芝 Magnetic resonance imaging apparatus, medical information processing apparatus, and patient information display method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004230163A (en) 2003-01-27 2004-08-19 Jawon Medical Co Ltd Body component analyzer and body component analyzing method
JP2007128337A (en) 2005-11-04 2007-05-24 Nec Corp Database access device, program and data updating method
JP3176165U (en) 2012-03-29 2012-06-14 株式会社ファーマテックソリューションズジャパン Medical calculator
JP2014213085A (en) 2013-04-26 2014-11-17 株式会社東芝 Magnetic resonance imaging apparatus, medical information processing apparatus, and patient information display method

Also Published As

Publication number Publication date
JP2024024089A (en) 2024-02-21
JP2021152736A (en) 2021-09-30

Similar Documents

Publication Publication Date Title
US10528663B2 (en) Touch keyboard using language and spatial models
US5995991A (en) Floating point architecture with tagged operands
CN103902051A (en) Input method and system for implementing same
JP7419911B2 (en) Electronic equipment, calculation methods and programs
CN103377288A (en) Mathematical expression input apparatus and mathematical expression modificaltion method
US20230086424A1 (en) Electronic apparatus, control method and storage medium
JP6635132B2 (en) Tax calculator, tax calculation method and tax calculation program
JP4997812B2 (en) Calculation apparatus and calculation program
JP2009110392A (en) Recurring decimal display and recurring decimal display control program
TW201514788A (en) Clamshell electronic device and calibration method thereof
US9390051B2 (en) Electronic calculator and method for controlling the same
JP2021192316A (en) Calculation device, calculation method, and program
US10114791B2 (en) Electronic apparatus, calculation processing method, and recording medium storing calculation processing program
JP3941265B2 (en) Computing device and storage medium
JP2020038722A (en) Tax calculator, tax calculating method, and tax calculating program
JP4893340B2 (en) Calculation apparatus and calculation program
US11886834B2 (en) Electronic device, input-data processing method, and storage medium
JP2011070249A (en) Calculator and program
JP4193773B2 (en) Arithmetic control device and program
JP2018005530A (en) Calculation device, calculation device and program
KR100850574B1 (en) Mobile terminal having wheel key and method for determining of direction thereof
JP5487997B2 (en) Electronic computer and program
JP2002091671A (en) Method for recognizing depressed key
JP6201355B2 (en) Formula display device, formula display program, and formula display method
JP6515613B2 (en) Electronic equipment, calculation processing program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230220

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231130

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231225

R150 Certificate of patent or registration of utility model

Ref document number: 7419911

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150