Computer and computer program

The calculator addresses accidental tax rate errors by using separate tax keys and processor controls to restore the intended calculation state, ensuring accurate tax calculations with simple operations.

JP2026035886APending Publication Date: 2026-03-04CASIO COMPUTER CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025244281
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-12-10
Publication Date
2026-03-04

AI Technical Summary

Technical Problem

Users may accidentally perform tax calculations with incorrect tax rates due to pressing the wrong tax calculation keys, leading to unintended results.

Method used

A calculator with separate tax-inclusive and tax-exclusive keys for multiple tax rates, and a processor that allows restoring the input state to the intended calculation with simple operations by clearing and updating storage areas based on key inputs.

Benefits of technology

Enables quick restoration of the intended tax calculation state, ensuring accurate results by allowing users to revert calculations with minimal effort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026035886000001_ABST
    Figure 2026035886000001_ABST
Patent Text Reader

Abstract

To provide a computer and a calculation program capable of returning an input state by a simple operation even if calculation different from an original intention of a user is performed.SOLUTION: The computer includes: a first calculation unit configured to perform a first calculation using a first argument on a numerical value when a first instruction input is received after the numerical value is input; a second calculation unit configured to perform a second calculation using the first argument on the numerical value when a second instruction input is received after the numerical value is input; a first control unit configured to return a calculation result of the first calculation to an input state immediately before the first instruction input is received when the first instruction input is received without the numerical value being input after the first calculation is performed; and a second control unit configured to return the calculation result of the second calculation to the input state immediately before the first instruction input is received when the second instruction input is received after the second calculation is performed.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a computer and a computer program. [Background technology]

[0002] Some calculators, such as desktop calculators, have the ability to perform specific calculations using specific preset values. Such functions include, for example, a consumption tax calculation function. When a consumption tax calculation is performed, a preset consumption tax rate is called up and the tax-inclusive price or tax-exclusive price for the input amount is calculated. Some calculators are also known that have separate tax-inclusive keys for calculating the tax-inclusive price and tax-exclusive prices for calculating the tax-exclusive price. Furthermore, in recent years, calculators have also become known that have tax-inclusive keys and tax-exclusive keys for multiple different tax rates. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Laid-Open No. 2000-132517 Summary of the Invention [Problem to be solved by the invention]

[0004] When tax calculation keys for different tax rates are provided, it is conceivable that a user may accidentally press a tax calculation key for a different tax rate while inputting data into the calculator, resulting in a tax calculation that is different from the intended one. In such a case, it is useful to be able to perform the intended tax calculation with a simple operation.

[0005] An object of the present invention is to provide a calculator and a calculation program that allow the input state to be restored with a simple operation even if a calculation different from the user's original intention is performed. [Means for solving the problem]

[0006] A first aspect of the present invention provides a calculator comprising: a first calculation unit that, when a first instruction input is received after a numerical value has been input, performs a first calculation using a first argument on the numerical value; a second calculation unit that, when a second instruction input is received after a numerical value has been input, performs a second calculation using the first argument on the numerical value; a first control unit that, when a second instruction input is received without a numerical value being input after the first calculation has been performed, returns the result of the first calculation to the input state immediately before the first instruction input was received; and a second control unit that, when a first instruction input is received without a numerical value being input after the second calculation has been performed, returns the result of the second calculation to the input state immediately before the second instruction input was received.

[0007] A second aspect of the calculation program of the present invention causes a processor to perform the following: when a first instruction input is received after a numerical input, a first calculation using a first argument on the numerical value; when a second instruction input is received after a numerical input, a second calculation using the first argument on the numerical value; when a second instruction input is received after a numerical input, after the first calculation is performed, a return of the result of the first calculation to the input state immediately before the first instruction input was received; and when a first instruction input is received after the second calculation is performed, a return of the result of the second calculation to the input state immediately before the second instruction input was received. [Effects of the Invention]

[0008] According to the present invention, it is possible to provide a calculator and a calculation program that allow the input state to be restored with a simple operation even if a calculation different from the user's original intention is performed. [Brief explanation of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a computer according to an embodiment. [Figure 2] FIG. 2 is a front view of the appearance of the calculator. [Figure 3A] FIG. 3A is a flowchart showing the tax calculation process of the calculator according to the embodiment. [Figure 3B] FIG. 3B is a flowchart showing the tax calculation process of the calculator according to the embodiment. [Figure 4A] FIG. 4A is a diagram showing the transition of the states of the display, input value storage area, subtotal 1 storage area, and subtotal 2 storage area when a key input is made in accordance with the first operation. [Figure 4B] FIG. 4B is a diagram showing the transition of the states of the display, input value storage area, subtotal 1 storage area, and subtotal 2 storage area when key input is made in accordance with the second operation. [Figure 5] FIG. 5 is a diagram showing a transition of the display on the display in the first operation. DETAILED DESCRIPTION OF THE INVENTION

[0010] FIG. 1 is a diagram showing an example of the configuration of a calculator 1 according to an embodiment. Calculator 1 has a processor 11, a memory 12, an input device 13, a display 14, and a power supply module 15. Calculator 1 may be a desktop calculator, or a so-called pocket calculator. Calculator 1 may also be various electronic devices other than a pocket calculator that have a function for calculating numerical values. Calculator 1 may also have a configuration other than that shown in FIG. 1.

[0011] The processor 11 controls various operations of the calculator 1. The processor 11 may be a CPU, an ASIC, an FPGA, or the like. The processor 11 may also be composed of two or more processors. The processor 11 operates as a first calculation unit that performs a tax-inclusive calculation using a first tax rate or a second tax rate. The processor 11 also operates as a second calculation unit that performs a tax-exclusive calculation using the first tax rate or a second tax rate. The processor 11 also operates as a first control unit that returns the calculation result of the first calculation unit to the immediately preceding input state. The processor 11 also operates as a second control unit that returns the calculation result of the second calculation unit to the immediately preceding input state. The processor 11 also operates as a storage control unit that controls storage in the memory 12. The processor 11 also operates as a display control unit that controls the display on the display 14. Here, the first tax rate is, for example, 10%. The second tax rate is, for example, 8%. The first tax rate and the second tax rate may be changed by the user.

[0012] The memory 12 includes RAM and ROM. The RAM is a volatile memory that can operate as a storage unit. The RAM is used as a working memory for temporarily storing various data in the processor 11, etc. In this embodiment, the RAM has an input value storage area for storing numerical values ​​entered via the numeric keys. The RAM also has a subtotal 1 storage area for storing the result of tax calculation using a first tax rate. The subtotal 1 storage area includes a first total price including tax storage area for storing the total price including tax to which the first tax rate is applied, a first total price excluding tax storage area for storing the total price excluding tax to which the first tax rate is applied, and a first total tax amount storage area for storing the tax amount to which the first tax rate is applied. The RAM also has a subtotal 2 storage area for storing the result of tax calculation using a second tax rate. The subtotal 2 storage area includes a second total price including tax storage area for storing the total price including tax to which the second tax rate is applied, a second total price excluding tax storage area for storing the total price excluding tax to which the second tax rate is applied, and a second total tax amount storage area for storing the total tax amount to which the second tax rate is applied. The ROM is a non-volatile memory. Various programs, such as calculation programs for executing various calculation functions, are stored in the ROM. The ROM also stores various specific numerical values, etc. used in numerical calculations, etc., as arguments. These specific numerical values ​​include, for example, the tax rate value used in tax calculation.

[0013] The input device 13 is an interface for various operations that allows the user to operate the calculator 1. When an operation using the input device 13 is accepted, an input signal corresponding to the operation is transmitted to the processor 11.

[0014] The display 14 is a display unit such as a liquid crystal display, etc. The display 14 displays various information related to the calculator function.

[0015] The power supply module 15 supplies power to each circuit of the calculator 1. The power supply module 15 is, for example, a solar cell module. The solar cell module generates power from light irradiated through a light receiving window.

[0016] 2 is a front view of the appearance of calculator 1. As shown in FIG. 2, an input device 13 and a display 14 are provided on the front of the housing of calculator 1.

[0017] The input device 13 has numeric keys, arithmetic keys, and function keys. The numeric keys are keys for inputting numeric values, and include, for example, keys corresponding to the numeric values ​​from 0 to 9. The arithmetic keys are keys for performing the four arithmetic operations, and include, for example, keys corresponding to the operators + (addition), - (subtraction), × (multiplication), and ÷ (division), and an = (execute operation) key. The function keys are keys for performing various functions of the calculator 1, and include, for example, an all clear key (AC key), a clear key (C key), and memory keys (MRC key, M+ key, M- key).

[0018] Furthermore, in this embodiment, the input device 13 has various tax calculation keys. The tax calculation keys include a tax-inclusive 1 key 131, a tax-exclusive 1 key 132, a tax-inclusive 2 key 133, a tax-exclusive 2 key 134, and a tax calculation total key 135.

[0019] The tax-inclusive 1 key 131 is a tax calculation key for performing tax-inclusive calculation using a first tax rate preset as an argument for an input numerical value. The tax-exclusive 1 key 132 is a tax calculation key for performing tax-exclusive calculation using a first tax rate for an input numerical value. The calculation result calculated by pressing the tax-inclusive 1 key 131 or the tax-exclusive 1 key 132 is stored in the subtotal 1 storage area of ​​the RAM of the memory 12.

[0020] The tax-inclusive 2 key 133 is a tax calculation key for performing tax-inclusive calculation using a second tax rate preset as an argument for an input numerical value. The tax-exclusive 2 key 134 is a tax calculation key for performing tax-exclusive calculation using a second tax rate for an input numerical value. The calculation result calculated by pressing the tax-inclusive 2 key 133 or the tax-exclusive 2 key 134 is stored in the subtotal 2 storage area of ​​the RAM of the memory 12. In this way, in the embodiment, the tax calculation using the first tax rate and the tax calculation using the second tax rate are performed separately.

[0021] The tax calculation total key 135 is a key for displaying the total amount of the tax calculation results using the first tax rate, the total amount of the tax calculation results using the second tax rate, and the total amount of the tax calculation results using the first tax rate and the tax calculation results using the second tax rate.

[0022] The input device 13 may have a fraction selector 136 and a decimal point selector 137. The fraction selector 136 is a selector for specifying the processing to be performed when a fraction occurs in the tax calculation result. For example, the fraction selector 136 can select the processing to be performed as the fraction from among processing such as rounding down and rounding up. The decimal point selector 137 is a selector for specifying the number of decimal places to be used in the calculation when a decimal number occurs in the tax calculation.

[0023] 3A and 3B are flowcharts showing the tax calculation process of the calculator 1 according to the embodiment. The process of FIGS. 3A and 3B is performed by the processor 11 executing a calculation program stored in the ROM of the memory 12. Normal operations of the calculator 1 other than the tax calculation process are not particularly limited. For example, the processor 11 displays the calculation result on the display 14 in accordance with the user's key input, and performs various functions such as a memory function.

[0024] In step S1, processor 11 determines whether a numeric value has been input. If any numeric key has been pressed, it is determined that a numeric value has been input. If it is determined in step S1 that a numeric value has been input, the process proceeds to step S2. If it is determined in step S1 that a numeric value has not been input, the process of Figures 3A and 3B ends. In this case, the operation of calculator 1 proceeds to normal operation.

[0025] In step S2, the processor 11 updates the contents of the input value storage area in the RAM of the memory 12 with the numerical input value.

[0026] In step S3, the processor 11 displays the input numerical value on the display 14.

[0027] In step S4, processor 11 determines whether tax-inclusive 1 key 131 has been pressed. If it is determined in step S4 that tax-inclusive 1 key 131 has been pressed, the process proceeds to step S5. If it is determined in step S4 that tax-inclusive 1 key 131 has not been pressed, the process proceeds to step S13.

[0028] In step S5, processor 11 performs tax-inclusive price display processing. Tax-inclusive price display processing is processing for displaying a tax-inclusive price using a first tax rate. As tax-inclusive price display processing, processor 11 performs tax-inclusive price calculation using the first tax rate on the input numerical value. Then, processor 11 displays the result of the tax-inclusive price calculation on display 14.

[0029] In step S6, processor 11 updates the contents of the subtotal 1 storage area in RAM of memory 12 based on the result of the tax-inclusive calculation using the first tax rate. Specifically, processor 11 adds the result of the tax-inclusive calculation using the first tax rate to the tax-inclusive price stored in the first tax-inclusive total price storage area. Processor 11 also adds the tax-exclusive price corresponding to the result of this tax-inclusive calculation, i.e., the most recently entered value, to the tax-exclusive price stored in the first tax-exclusive total price storage area. Processor 11 also adds the tax amount calculated from the result of this tax-inclusive calculation to the tax amount stored in the first tax total storage area.

[0030] In step S7, processor 11 determines whether or not tax-inclusive 1 key 131 has been pressed. If it is determined in step S7 that tax-inclusive 1 key 131 has been pressed, the process proceeds to step S8. If it is determined in step S7 that tax-inclusive 1 key 131 has not been pressed, the process proceeds to step S9.

[0031] In step S8, processor 11 performs a process to display tax value 1 on display 14. After the process of displaying tax value 1, the processes of FIGS. 3A and 3B end. In this case, the operation of calculator 1 transitions to normal operation. The process of displaying tax value 1 is a process for displaying the tax amount calculated in step S6. That is, if tax-inclusive 1 key 131 is pressed after the tax-inclusive calculation using the first tax rate, the display on display 14 switches from displaying the price including tax to displaying the tax amount.

[0032] In step S9, processor 11 determines whether or not tax-excluded 1 key 132 has been pressed. If it is determined in step S9 that tax-excluded 1 key 132 has been pressed, the process proceeds to step S10. If it is determined in step S9 that tax-excluded 1 key 132 has not been pressed, the process of Figures 3A and 3B ends. In this case, the operation of calculator 1 proceeds to normal operation.

[0033] In step S10, processor 11 refers to the contents of the input value storage area and displays the most recently input numerical value on display 14.

[0034] In step S11, processor 11 clears the contents of the subtotal 1 storage area in RAM of memory 12 based on the previously entered numerical value. Specifically, processor 11 restores the values ​​stored in the first tax-inclusive total storage area, the first tax-exclusive total storage area, and the first tax amount storage area to the values ​​they had before the tax-inclusive calculation based on the previously entered numerical value. The processing of Figures 3A and 3B then ends. In this case, the operation of calculator 1 transitions to normal operation. That is, if the tax-exclusive 1 key 132 is pressed without entering a numerical value after a tax-inclusive calculation using the first tax rate, the result of the previous tax-inclusive calculation is cleared.

[0035] In step S12, processor 11 determines whether or not tax-excluded 1 key 132 has been pressed. If it is determined in step S12 that tax-excluded 1 key 132 has been pressed, the process proceeds to step S13. If it is determined in step S12 that tax-excluded 1 key 132 has not been pressed, the process proceeds to step S20.

[0036] In step S13, processor 11 performs a tax-excluded price display process. The tax-excluded price display process is a process for displaying a price excluding tax using a first tax rate. As the tax-excluded price display process, processor 11 performs a tax-excluded price calculation using the first tax rate on the input numerical value. Then, processor 11 displays the result of the tax-excluded price calculation on display 14.

[0037] In step S14, processor 11 updates the contents of the subtotal 1 storage area in RAM of memory 12 based on the result of the tax-excluded calculation using the first tax rate. Specifically, processor 11 adds the result of the tax-excluded calculation using the first tax rate to the tax-excluded price stored in the first tax-excluded total storage area. Processor 11 also adds the tax-inclusive price corresponding to the result of this tax-excluded calculation, i.e., the most recently entered value, to the tax-excluded price stored in the first tax-inclusive total storage area. Processor 11 also adds the tax amount calculated from the result of this tax-excluded calculation to the tax amount stored in the first tax total storage area.

[0038] In step S15, processor 11 determines whether or not tax-excluded 1 key 132 has been pressed. If it is determined in step S15 that tax-excluded 1 key 132 has been pressed, the process proceeds to step S16. If it is determined in step S15 that tax-excluded 1 key 132 has not been pressed, the process proceeds to step S17.

[0039] In step S16, processor 11 performs processing to display tax value 1 on display 14. After the processing to display tax value 1, the processing in Figures 3A and 3B ends. The processing to display tax value 1 is processing to display the tax amount calculated in step S14. That is, if tax-excluded 1 key 131 is pressed after the tax-excluded calculation using the first tax rate, the display on display 14 switches from displaying the price excluding tax to displaying the tax amount.

[0040] In step S17, processor 11 determines whether tax-inclusive 1 key 131 has been pressed. If it is determined in step S17 that tax-inclusive 1 key 131 has been pressed, the process proceeds to step S18. If it is determined in step S17 that tax-inclusive 1 key 131 has not been pressed, the process of Figures 3A and 3B ends. In this case, the operation of calculator 1 proceeds to normal operation.

[0041] In step S18, processor 11 refers to the contents of the input value storage area and displays the previously input numerical value on display 14.

[0042] In step S19, processor 11 clears the contents of the subtotal 1 storage area in RAM of memory 12 based on the previously entered numerical value. Specifically, processor 11 restores the values ​​stored in the first tax-inclusive total storage area, the first tax-exclusive total storage area, and the first tax amount storage area to the values ​​prior to the tax-exclusive calculation based on the previously entered numerical value. The processing of Figures 3A and 3B then ends. In this case, the operation of calculator 1 transitions to normal operation. That is, if tax-inclusive 1 key 131 is pressed without entering a numerical value after the tax-exclusive calculation using the first tax rate, the result of the previous tax-exclusive calculation is cleared.

[0043] In step S20, processor 11 determines whether tax-inclusive 2 key 133 has been pressed. If it is determined in step S20 that tax-inclusive 2 key 133 has been pressed, the process proceeds to step S21. If it is determined in step S20 that tax-inclusive 2 key 133 has not been pressed, the process proceeds to step S28.

[0044] In step S21, processor 11 performs tax-inclusive 2 display processing. Tax-inclusive 2 display processing is processing for displaying a tax-inclusive price using a second tax rate. As tax-inclusive 2 display processing, processor 11 performs tax-inclusive calculation on the input numerical value using the second tax rate. Then, processor 11 displays the result of the tax-inclusive calculation on display 14.

[0045] In step S22, processor 11 updates the contents of the subtotal 2 storage area in RAM of memory 12 based on the result of the tax-inclusive calculation using the second tax rate. Specifically, processor 11 adds the result of the tax-inclusive calculation using the second tax rate to the tax-inclusive price stored in the second tax-inclusive total price storage area. Processor 11 also adds the tax-exclusive price corresponding to the result of this tax-inclusive calculation, i.e., the most recently entered value, to the tax-exclusive price stored in the second tax-exclusive total price storage area. Processor 11 also adds the tax amount calculated from the result of this tax-inclusive calculation to the tax amount stored in the second tax total storage area.

[0046] In step S23, processor 11 determines whether tax-inclusive 2 key 133 has been pressed. If it is determined in step S23 that tax-inclusive 2 key 133 has been pressed, the process proceeds to step S24. If it is determined in step S23 that tax-inclusive 2 key 133 has not been pressed, the process proceeds to step S25.

[0047] In step S24, processor 11 performs a process to display tax value 2 on display 14. After the process to display tax value 2, the processes in FIGS. 3A and 3B end. In this case, the operation of calculator 1 transitions to normal operation. The process to display tax value 2 is a process for displaying the tax amount calculated in step S22. That is, if tax-inclusive 2 key 133 is pressed after the tax-inclusive calculation using the second tax rate, the display on display 14 switches from displaying the price including tax to displaying the tax amount.

[0048] In step S25, processor 11 determines whether or not tax-excluded 2 key 134 has been pressed. If it is determined in step S25 that tax-excluded 2 key 134 has been pressed, the process proceeds to step S26. If it is determined in step S25 that tax-excluded 2 key 134 has not been pressed, the process of Figures 3A and 3B ends. In this case, the operation of calculator 1 proceeds to normal operation.

[0049] In step S26, processor 11 refers to the contents of the input value storage area and displays on display 14 the numerical value that was input immediately before.

[0050] In step S27, processor 11 clears the contents of the subtotal 2 storage area in RAM of memory 12 based on the previously entered numerical value. Specifically, processor 11 restores the values ​​stored in the second tax-inclusive total storage area, the second tax-exclusive total storage area, and the second tax amount storage area to their values ​​prior to the tax-inclusive calculation based on the previously entered numerical value. The processing of Figures 3A and 3B then ends. In this case, the operation of calculator 1 transitions to normal operation. That is, if tax-exclusive 2 key 134 is pressed without entering a numerical value after the tax-inclusive calculation using the second tax rate, the result of the previous tax-inclusive calculation is cleared.

[0051] In step S28, processor 11 determines whether or not tax-excluded 2 key 134 has been pressed. If it is determined in step S28 that tax-excluded 2 key 134 has been pressed, the process proceeds to step S29. If it is determined in step S28 that tax-excluded 2 key 134 has not been pressed, the process of Figures 3A and 3B ends. In this case, the operation of calculator 1 proceeds to normal operation.

[0052] In step S29, the tax-excluded price 2 display process is performed. The tax-excluded price 2 display process is a process for displaying the price excluding tax using a second tax rate. In the tax-excluded price 2 display process, processor 11 performs a tax-excluded price calculation using the second tax rate on the input numerical value. Then, processor 11 displays the result of the tax-excluded price calculation on display 14.

[0053] In step S30, processor 11 updates the contents of the subtotal 2 storage area in RAM of memory 12 based on the result of the tax-excluded calculation using the second tax rate. Specifically, processor 11 adds the result of the tax-excluded calculation using the second tax rate to the tax-excluded price stored in the second total tax-excluded price storage area. Processor 11 also adds the tax-inclusive price corresponding to the result of this tax-excluded calculation, i.e., the most recently entered value, to the tax-inclusive price stored in the second total tax-inclusive price storage area. Processor 11 also adds the tax amount calculated from the result of this tax-excluded calculation to the tax amount stored in the second total tax amount storage area.

[0054] In step S31, processor 11 determines whether or not tax-excluded 2 key 134 has been pressed. If it is determined in step S31 that tax-excluded 2 key 134 has been pressed, the process proceeds to step S32. If it is determined in step S31 that tax-excluded 2 key 134 has not been pressed, the process proceeds to step S33.

[0055] In step S32, processor 11 performs a process to display tax value 2 on display 14. After the process of displaying tax value 2, the processes of FIGS. 3A and 3B end. In this case, the operation of calculator 1 transitions to normal operation. The process of displaying tax value 2 is a process for displaying the tax amount calculated in step S30. That is, if tax-excluded 2 key 134 is pressed after the tax-excluded calculation using the second tax rate, the display on display 14 switches from displaying the price excluding tax to displaying the tax amount.

[0056] In step S33, processor 11 determines whether tax-included 2 key 133 has been pressed. If it is determined in step S33 that tax-included 2 key 133 has been pressed, the process proceeds to step S34. If it is determined in step S33 that tax-included 2 key 133 has not been pressed, the process of Figures 3A and 3B ends. In this case, the operation of calculator 1 proceeds to normal operation.

[0057] In step S34, processor 11 refers to the contents of the input value storage area and displays on display 14 the numerical value that was input immediately before.

[0058] In step S35, processor 11 clears the contents of the subtotal 2 storage area in RAM of memory 12 based on the previously entered numerical value. Specifically, processor 11 restores the values ​​stored in the second tax-inclusive total storage area, the second tax-exclusive total storage area, and the second tax amount storage area to the values ​​prior to the tax-exclusive calculation based on the previously entered numerical value. The processing of Figures 3A and 3B then ends. In this case, the operation of calculator 1 transitions to normal operation. That is, if tax-inclusive 2 key 133 is pressed without entering a numerical value after the tax-exclusive calculation using the second tax rate, the result of the previous tax-exclusive calculation is cleared.

[0059] FIG. 4A shows the transition of the states of the display, input value storage area, subtotal 1 storage area, and subtotal 2 storage area when key input is performed according to the first operation. The first operation is the operation of repeatedly pressing the same tax calculation key. Here, "key" indicates the type of operation key pressed. "Icon" indicates the type of icon displayed on display 14. "Display" indicates the numerical value displayed on display 14. "Input" indicates the content stored in the input value storage area. "Subtotal 1" indicates the content stored in the subtotal 1 storage area. Of "Subtotal 1," "Tax Included 1" indicates the content stored in the first total price including tax storage area, "Tax Excluded 1" indicates the content stored in the first total price excluding tax storage area, and "Tax 1" indicates the content stored in the first total tax amount storage area. Similarly, "Subtotal 2" indicates the content stored in the subtotal 2 storage area. Of the "Subtotal 2," "Tax 2" indicates the content stored in the second total price including tax storage area, "Tax 2" indicates the content stored in the second total price excluding tax storage area, and "Tax 2" indicates the content stored in the second total tax amount storage area. Here, in Figure 4A, the first tax rate is 10% and the second tax rate is 8%.

[0060] In the first example of the first operation, as shown in "key", the AC key is pressed, the number "100" is entered, then the tax-included 1 key 131 is pressed, and then the tax-included 1 key 131 is pressed without entering a number.

[0061] Pressing the AC key clears the state of Calculator 1. In other words, "Input," "Tax 1," "Excluding Tax 1," "Tax 1," "Tax 2," "Excluding Tax 2," and "Tax 2" are reset to their initial values ​​of "0." Also, "Icon" is set to blank, meaning nothing is displayed on the display 14. Also, "Display" is set to "0," meaning the initial value of "0" is displayed on the display 14.

[0062] Next, by entering the number "100" and then pressing the tax-inclusive 1 key 131, a tax-inclusive calculation is performed using the first tax rate. As a result, the contents of "Input," "tax-inclusive 1," "excl. tax 1," and "Tax 1" are updated. "Input" is updated to the entered number "100." "Tax-inclusive 1" is updated to "110," the result of the tax-inclusive calculation. "Excl. tax 1" is updated to the price excluding tax as a result of the tax-inclusive calculation, i.e., the entered number "100." "Tax 1" is updated to "10." Meanwhile, the contents of "tax-inclusive 2," "excl. tax 2," and "Tax 2" are not updated. Additionally, "Icon" is set to display the "Tax GT icon," "tax-inclusive icon," and "Tax 1 icon." These icons will be explained later. Additionally, "Display" is set to display "110," the result of the tax-inclusive calculation.

[0063] Next, when the tax-inclusive 1 key 131 is pressed, "Icon" changes to a state where the "Tax GT icon", "Tax icon", and "Tax 1 icon" are displayed. Also, "Display" changes to a state where "10", which is the tax amount corresponding to the result of the tax-inclusive calculation, is displayed. On the other hand, "Input", "Tax-inclusive 1", "Tax-exclusive 1", "Tax 1", "Tax-inclusive 2", "Tax-exclusive 2", and "Tax 2" are not updated.

[0064] In the second example of the first operation, as shown in "key", the AC key is pressed, the number "100" is entered, then the tax-included 2 key 133 is pressed, and then the tax-included 2 key 133 is pressed without entering a number.

[0065] The state when the AC key is pressed is the same as in the first example. Next, by entering the number "100" and then pressing the tax-inclusive 2 key 133, a tax-inclusive calculation is performed using the second tax rate. As a result, the contents of "Input," "tax-inclusive 2," "excl. tax 2," and "Tax 2" are updated. "Input" is updated to the entered number "100." "Tax-inclusive 2" is updated to "108," the result of the tax-inclusive calculation. "Excl. tax 2" is updated to the entered number "100," the price excluding tax as a result of the tax-inclusive calculation. "Tax 2" is updated to "8." Meanwhile, the contents of "tax-inclusive 1," "excl. tax 1," and "Tax 1" are not updated. Additionally, "Icon" displays the "Tax GT icon," "Tax-inclusive icon," and "Tax 2 icon." These icons will be explained later. Additionally, "Display" displays the result of the tax-inclusive calculation, "108."

[0066] Next, when the tax-inclusive 2 key 133 is pressed, "Icon" changes to a state where the "Tax GT icon", "Tax icon", and "Tax 2 icon" are displayed. Also, "Display" changes to a state where "8", which is the tax amount corresponding to the tax-inclusive calculation result, is displayed. Meanwhile, "Input", "Tax 1", "Tax-excluded 1", "Tax 1", "Tax 2", "Tax-excluded 2", and "Tax 2" are not updated.

[0067] In the third example of the first operation, as shown in "key", the AC key is pressed, the number "110" is entered, then the tax-excluded 1 key 132 is pressed, and then the tax-excluded 2 key 132 is pressed without entering any number.

[0068] The state when the AC key is pressed is the same as in the first example. Next, by entering the number "110" and then pressing the tax-excluded 1 key 132, a tax-excluded calculation is performed using the first tax rate. Accordingly, the contents of "Input," "Tax 1," "Tax 1," and "Tax 1" are updated. "Input" is updated to the entered number "110." "Tax 1" is updated to "100," the result of the tax-excluded calculation. "Tax 1" is updated to the price including tax as a result of the tax-excluded calculation, i.e., the entered number "110." "Tax 1" is updated to "10." Meanwhile, the contents of "Tax 2," "Tax 2," and "Tax 2" are not updated. Furthermore, "Icon" is set to display the "Tax GT icon," "Tax excluding icon," and "Tax 1 icon." These icons will be explained later. Furthermore, "Display" is set to display "100," the result of the tax-excluded calculation.

[0069] Next, when the tax-excluded 1 key 132 is pressed, the "Icon" changes to a state where the "Tax GT icon," "Tax icon," and "Tax 1 icon" are displayed. Also, the "Display" changes to a state where "10," which is the tax amount corresponding to the result of the tax-excluded calculation, is displayed. On the other hand, "Input," "Tax included 1," "Tax excluded 1," "Tax 1," "Tax included 2," "Tax excluded 2," and "Tax 2" are not updated.

[0070] In the fourth example of the first operation, as shown in "key", the AC key is pressed, the number "108" is entered, then the tax-excluded 2 key 134 is pressed, and then the tax-excluded 2 key 134 is pressed without entering any number.

[0071] The state when the AC key is pressed is the same as in the first example. Next, by entering the number "108" and then pressing the tax-excluded 2 key 134, a tax-excluded calculation is performed using the second tax rate. Accordingly, the contents of "Input," "Tax 2," "Tax 2," and "Tax 2" are updated. "Input" is updated to the entered number "108." "Tax 2" is updated to "100," the result of the tax-excluded calculation. "Tax 2" is updated to the price including tax as a result of the tax-excluded calculation, i.e., the entered number "108." "Tax 2" is updated to "8." Meanwhile, the contents of "Tax 1," "Tax 1," and "Tax 1" are not updated. Furthermore, "Icon" is set to display the "Tax GT icon," "Tax excluding icon," and "Tax 2 icon." These icons will be explained later. Furthermore, "Display" is set to display "100," the result of the tax-excluded calculation.

[0072] Next, when the tax-excluded 2 key 134 is pressed, the "Icon" changes to a state where the "Tax GT icon", "Tax icon", and "Tax 2 icon" are displayed. Also, the "Display" changes to a state where "8", which is the tax amount corresponding to the result of the tax-excluded calculation, is displayed. On the other hand, "Input", "Tax 1", "Tax 1", "Tax 2", "Tax 2", and "Tax 2" are not updated.

[0073] Figure 4B shows the transition of the state of the display, input value storage area, subtotal 1 storage area, and subtotal 2 storage area when key input is made in accordance with the second operation. The second operation is the operation of successively pressing different tax calculation keys for the same tax rate. Here, "key," "Icon," "Display," "Input," "Subtotal 1," "Tax Included 1," "Tax Excluded 1," "Tax 1," "Subtotal 2," "Tax Included 2," "Tax Excluded 2," and "Tax 2" are the same as in Figure 4A. Also in Figure 4B, the first tax rate is 10% and the second tax rate is 8%.

[0074] In the first example of the second operation, as shown in "key", the AC key is pressed, the number "1000" is entered, then the tax-included 1 key 131 is pressed, the number "100" is entered, then the tax-included 1 key 131 is pressed, and then the tax-excluded 1 key 132 is pressed without entering any number.

[0075] Pressing the AC key clears the state of Calculator 1. In other words, "Input," "Tax 1," "Excluding Tax 1," "Tax 1," "Tax 2," "Excluding Tax 2," and "Tax 2" are reset to their initial values ​​of "0." Also, "Icon" is set to blank, meaning nothing is displayed on the display 14. Also, "Display" is set to "0," meaning the initial value of "0" is displayed on the display 14.

[0076] Next, by entering the number "1000" and then pressing the tax-inclusive 1 key 131, a tax-inclusive calculation is performed using the first tax rate. As a result, the contents of "Input," "Tax-inclusive 1," "Excluding Tax 1," and "Tax 1" are updated. "Input" is updated to the entered number "1000." "Tax-inclusive 1" is updated to "1100," the result of the tax-inclusive calculation. "Excluding Tax 1" is updated to the price excluding tax as a result of the tax-inclusive calculation, i.e., the entered number "1000." "Tax 1" is updated to "100." Meanwhile, the contents of "Tax-inclusive 2," "Excluding Tax 2," and "Tax 2" are not updated. Additionally, "Icon" is set to display the "Tax GT icon," "Tax-inclusive icon," and "Tax 1 icon." These icons will be explained later. Additionally, "Display" is set to display "1100," the result of the tax-inclusive calculation.

[0077] Next, by entering the number "100" and then pressing the tax-inclusive 1 key 131, a tax-inclusive calculation is performed using the first tax rate. Accordingly, the contents of "Input," "tax-inclusive 1," "excl. tax 1," and "Tax 1" are updated. "Input" is updated to the entered number "100." "Tax-inclusive 1" is updated to "1210" by adding the result of the tax-inclusive calculation. "Excl. tax 1" is updated to "1100," the price excluding tax as a result of the tax-inclusive calculation, that is, by adding the entered number "100." "Tax 1" is updated to "1100." Meanwhile, the contents of "Tax-inclusive 2," "Excl. tax 2," and "Tax 2" are not updated. Furthermore, "Icon" is set to display the "Tax GT icon," "Tax-inclusive icon," and "Tax 1 icon." These icons will be explained later. Furthermore, "Display" is set to display "110," the result of the tax-inclusive calculation.

[0078] Next, when the tax-excluded 1 key 132 is pressed, "tax-excluded 1", "tax-excluded 1", and "tax 1" are updated to the state before the previous tax-included calculation based on the previous input values. That is, "tax-included 1" is updated to "1100". "tax-excluded 1" is updated to "1000". "Tax 1" is updated to "100". Meanwhile, "Input" is not updated. Also, the "Icon" display is cleared. Also, "Display" is set to display the previous input value, "100". In this way, the result of the previous tax-included calculation is cleared.

[0079] In the second example of the second operation, as shown in "key", the AC key is pressed, the number "1000" is entered, then the tax-included 2 key 133 is pressed, the number "100" is entered, then the tax-included 2 key 133 is pressed, and then the tax-excluded 2 key 134 is pressed without entering any number.

[0080] The state when the AC key is pressed is the same as in the first example. Next, by entering the number "1000" and then pressing the tax-inclusive 2 key 133, a tax-inclusive calculation is performed using the second tax rate. As a result, the contents of "Input," "Tax-inclusive 2," "Excluding Tax 2," and "Tax 2" are updated. "Input" is updated to the entered number "1000." "Tax-inclusive 2" is updated to "1080," the result of the tax-inclusive calculation. "Excluding Tax 2" is updated to the entered number "1000," the price excluding tax as a result of the tax-inclusive calculation. "Tax 2" is updated to "80." Meanwhile, the contents of "Tax-inclusive 1," "Excluding Tax 1," and "Tax 1" are not updated. Additionally, "Icon" displays the "Tax GT icon," "Tax-inclusive icon," and "Tax 2 icon." These icons will be explained later. Additionally, "Display" displays the result of the tax-inclusive calculation, "1080."

[0081] Next, by entering the number "100" and then pressing the tax-inclusive 2 key 133, a tax-inclusive calculation is performed using the second tax rate. Accordingly, the contents of "Input," "tax-inclusive 2," "excl. tax 2," and "Tax 2" are updated. "Input" is updated to the entered number "100." "Tax-inclusive 2" is updated to "1188" by adding the result of the tax-inclusive calculation. "Excl. tax 2" is updated to "1100" by adding the entered number "100," which is the price excluding tax as a result of the tax-inclusive calculation. "Tax 2" is updated to "88." Meanwhile, the contents of "Tax-inclusive 1," "Excl. tax 1," and "Tax 1" are not updated. Furthermore, "Icon" is set to display the "Tax GT icon," "Tax-inclusive icon," and "Tax 2 icon." These icons will be explained later. Furthermore, "Display" is set to display "108," the result of the tax-inclusive calculation.

[0082] Next, when the tax-excluded 2 key 134 is pressed, "tax-excluded 2", "tax-excluded 2", and "tax 2" are updated to the state before the previous tax-included calculation based on the previous input values. That is, "tax-included 2" is updated to "1080". "tax-excluded 2" is updated to "1000". "Tax 2" is updated to "80". Meanwhile, "Input" is not updated. Also, the "Icon" display is cleared. Also, "Display" is set to display the previous input value, "100". In this way, the result of the previous tax-included calculation is cleared.

[0083] In the third example of the second operation, as shown in "key," the AC key is pressed, the number "1100" is entered, then the tax-excluded 1 key 132 is pressed, the number "110" is entered, then the tax-excluded 1 key 132 is pressed, and then the tax-inclusive 1 key 131 is pressed without entering any number.

[0084] The state when the AC key is pressed is the same as in the first example. Next, by entering the number "1100" and then pressing the tax-excluded 1 key 132, a tax-excluded calculation is performed using the first tax rate. Accordingly, the contents of "Input," "Tax 1," "Tax 1," and "Tax 1" are updated. "Input" is updated to the entered number "1100." "Tax 1" is updated to "1000," the result of the tax-excluded calculation. "Tax 1" is updated to the price including tax as a result of the tax-excluded calculation, i.e., the entered number "1100." "Tax 1" is updated to "100." Meanwhile, the contents of "Tax 2," "Tax 2," and "Tax 2" are not updated. Furthermore, "Icon" is set to display the "Tax GT icon," "Tax excluding icon," and "Tax 1 icon." These icons will be explained later. Furthermore, "Display" is set to display "1000," the result of the tax-excluded calculation.

[0085] Next, by entering the number "110" and then pressing the tax-excluded 1 key 132, a tax-excluded calculation is performed using the first tax rate. Accordingly, the contents of "Input," "Tax-excluded 1," "Tax-excluded 1," and "Tax 1" are updated. "Input" is updated to the entered number "110." "Tax-excluded 1" is updated to "1100" by adding the result of the tax-excluded calculation. "Tax-excluded 1" is updated to "1210" by adding the entered number "110," which is the price including tax to the result of the tax-excluded calculation. "Tax 1" is updated to "110." Meanwhile, the contents of "Tax-excluded 2," "Tax-excluded 2," and "Tax 2" are not updated. Furthermore, "Icon" is set to display the "Tax GT icon," "Tax-excluded icon," and "Tax 1 icon." These icons will be explained later. Furthermore, "Display" is set to display "100," the result of the tax-excluded calculation.

[0086] Next, when the tax-inclusive 1 key 131 is pressed, "tax-inclusive 1," "tax-exclusive 1," and "Tax 1" are updated to the state before the previous tax-exclusive calculation based on the previous input values. That is, "tax-exclusive 1" is updated to "1000." "tax-inclusive 1" is updated to "1100." "Tax 1" is updated to "100." Meanwhile, "Input" is not updated. Also, the "Icon" display is cleared. Also, "Display" is set to display the previous input value, "110." In this way, the result of the previous tax-exclusive calculation is cleared.

[0087] In the fourth example of the second operation, as shown in "key", the AC key is pressed, the number "1080" is entered, then the tax-excluded 2 key 134 is pressed, the number "108" is entered, then the tax-excluded 2 key 134 is pressed, and then the tax-inclusive 2 key 133 is pressed without entering any number.

[0088] The state when the AC key is pressed is the same as in the first example. Next, by entering the number "1080" and then pressing the tax-excluded 2 key 134, a tax-excluded calculation is performed using the second tax rate. Accordingly, the contents of "Input," "Tax 2," "Tax 2," and "Tax 2" are updated. "Input" is updated to the entered number "1080." "Tax 2" is updated to "1000," the result of the tax-excluded calculation. "Tax 2" is updated to the price including tax as a result of the tax-excluded calculation, i.e., the entered number "1080." "Tax 2" is updated to "80." Meanwhile, the contents of "Tax 1," "Tax 1," and "Tax 1" are not updated. Furthermore, "Icon" is set to display the "Tax GT icon," "Tax excluding icon," and "Tax 2 icon." These icons will be explained later. Furthermore, "Display" is set to display "1000," the result of the tax-excluded calculation.

[0089] Next, by entering the number "108" and then pressing the tax-excluded 2 key 134, a tax-excluded calculation is performed using the second tax rate. Accordingly, the contents of "Input," "Tax 2," "Tax 2," and "Tax 2" are updated. "Input" is updated to the entered number "108." "Tax 2" is updated to "1100" by adding the result of the tax-excluded calculation. "Tax 2" is updated to "1188" by adding the entered number "108," which is the price including tax to the result of the tax-excluded calculation. "Tax 2" is updated to "88." Meanwhile, the contents of "Tax 1," "Tax 1," and "Tax 1" are not updated. Furthermore, "Icon" is set to display the "Tax GT icon," "Tax excluding icon," and "Tax 2 icon." These icons will be explained later. Furthermore, "Display" is set to display "100," the result of the tax-excluded calculation.

[0090] Next, when the tax-inclusive 2 key 134 is pressed, "tax-inclusive 2," "tax-exclusive 2," and "Tax 2" are updated to the state before the previous tax-exclusive calculation based on the previous input values. That is, "tax-exclusive 2" is updated to "1000." "Tax-inclusive 2" is updated to "1080." "Tax 2" is updated to "80." Meanwhile, "Input" is not updated. Also, the "Icon" display is erased. Also, "Display" is set to display the previous input value, "108." In this way, the result of the previous tax-exclusive calculation is cleared.

[0091] 5 is a diagram showing the transition of the display on the display 14 in the first operation. In the case of the second operation, only the value input immediately before is displayed on the display. Therefore, the explanation will be omitted.

[0092] First, when the AC key is pressed, the display on the display 14 is cleared. At this time, the display screen on the display 14 is display screen A. On display screen A, the initial value "0" is displayed. On display screen A, no icons or the like are displayed.

[0093] On display screen A, if a value is entered and then the tax-inclusive key or tax-exclusive key is pressed, the display screen of display 14 transitions to display screen B. On display screen B, for example, if the tax-inclusive key 1 is pressed along with a value, a value 201 indicating the result of the tax calculation is displayed, as shown in screens b1, b2, b3, and b4. Furthermore, icons such as a tax GT icon 202, a tax-inclusive icon 203, and a tax 1 icon 204 are displayed. On display screen B, for example, if the tax-inclusive key 2 is pressed along with a value, a value 201 indicating the result of the tax calculation is displayed, as shown in screens b5, b6, and b7. Further icons such as a tax GT icon 202, a tax-inclusive icon 203, and a tax 2 icon 205 are displayed. Here, the tax GT icon 202 indicates that the total price including tax, the total price excluding tax, and the total tax amount have been calculated using the first tax rate. As mentioned above, when the tax-inclusive key is pressed after entering a value, the contents of the subtotal 1 storage area or the subtotal 2 storage area are updated. Tax included icon 203 indicates that the value 201 is a price including tax. Tax 1 icon 204 indicates that the tax calculation was performed using a first tax rate. Tax 2 icon 205 indicates that the tax calculation was performed using a second tax rate.

[0094] When the tax calculation total key 135 is pressed on display screen B, the display screen of the display 14 transitions to display screen C. On display screen C, as shown in screen c1, first, a numeric value 201 is displayed, which represents the total tax-inclusive price of the tax-inclusive price calculated at the first tax rate and the tax-inclusive price calculated at the second tax rate, i.e., the total tax-inclusive price stored in the first tax-inclusive price total storage area and the tax-inclusive price stored in the second tax-inclusive price total storage area. Furthermore, a tax GT icon 202, a tax-inclusive price icon 203, and a total icon 206 are displayed as icons. The total icon 206 is an icon indicating that the numeric value 201 is the total amount.

[0095] When the tax calculation total key 135 is pressed on screen c1, the display screen of the display 14 transitions to screen c2. Screen c2 displays a numeric value 201 representing the total price excluding tax, which is the total of the price excluding tax calculated at the first tax rate and the price excluding tax calculated at the second tax rate, i.e., the total price excluding tax stored in the first total price excluding tax storage area and the price excluding tax stored in the second total price excluding tax storage area. Additionally, a tax GT icon 202, a tax excluding icon 207, and a total icon 206 are displayed as icons. The tax excluding icon 207 indicates that the numeric value 201 is the price excluding tax.

[0096] When the tax calculation total key 135 is pressed on screen c1, the display screen of the display 14 transitions to screen c3. Screen c3 displays a numerical value 201 representing the total tax amount calculated using the first tax rate and the second tax rate, i.e., the total tax amount stored in the first total tax amount storage area and the second total tax amount storage area. Additionally, a tax GT icon 202, a tax icon 208, and a total icon 206 are displayed as icons. The tax icon 208 indicates that the numerical value 201 is the tax amount.

[0097] When the tax calculation total key 135 is pressed on screen c3, the display screen of the display 14 returns to screen c1. On the other hand, when the tax-inclusive 1 key 131 is pressed on any of screens c1, c2, and c3, the display screen of the display 14 transitions to display screen D. On display screen D, as shown on screen d1, first, a numeric value 201 representing the total tax-inclusive price of the tax-inclusive prices calculated at the first tax rate, i.e., the tax-inclusive price stored in the first total tax-inclusive price storage area, is displayed. Furthermore, as icons, a tax GT icon 202, a tax-inclusive icon 203, a tax 1 icon 204, and a total icon 206 are displayed.

[0098] When the tax-included 1 key 131 is pressed on screen d1, the display screen of the display 14 transitions to screen d2. Screen d2 displays a numeric value 201 representing the total price excluding tax calculated at the first tax rate, i.e., the price excluding tax stored in the first total price excluding tax storage area. Additionally, a tax GT icon 202, a tax-excluded icon 207, a tax 1 icon 204, and a total icon 206 are displayed as icons.

[0099] When the tax-inclusive 1 key 131 is pressed on screen d2, the display screen of the display 14 transitions to screen d3. Screen d3 displays a numeric value 201 representing the tax amount calculated at the first tax rate, i.e., the tax amount stored in the first total tax amount storage area. Additionally, icons such as a tax GT icon 202, a tax icon 208, a tax 1 icon 204, and a total icon 206 are displayed.

[0100] When the tax calculation total key 135 is pressed on any of screens d1, d2, and d3, the display screen of the display 14 returns to display screen C. On the other hand, when the tax-inclusive 2 key 133 is pressed on any of screens c1, c2, and c3, or when the tax-inclusive 2 key 133 is pressed on any of screens d1, d2, and d3, the display screen of the display 14 transitions to display screen E. On display screen E, as shown on screen e1, first, a numeric value 201 representing the total tax-inclusive price of the tax-inclusive prices calculated at the second tax rate, i.e., the tax-inclusive price stored in the second total tax-inclusive price storage area, is displayed. Furthermore, a tax GT icon 202, a tax-inclusive icon 203, a tax 2 icon 205, and a total icon 206 are displayed as icons.

[0101] When the tax-included 2 key 133 is pressed on screen e1, the display screen of the display 14 transitions to screen e2. Screen e2 displays a numeric value 201 representing the total price excluding tax calculated at the second tax rate, i.e., the price excluding tax stored in the second total price excluding tax storage area. Additionally, a tax GT icon 202, a tax-excluded icon 207, a tax 2 icon 205, and a total icon 206 are displayed as icons.

[0102] When the tax-inclusive 2 key 133 is pressed on screen e2, the display screen of the display 14 transitions to screen e3. Screen e3 displays a numeric value 201 representing the tax amount calculated at the second tax rate, i.e., the tax amount stored in the second total tax amount storage area. Additionally, icons such as a tax GT icon 202, a tax icon 208, a tax 2 icon 205, and a total icon 206 are displayed.

[0103] When the tax calculation total key 135 is pressed on any of the screens e1, e2, and e3, the display screen of the display 14 returns to the display screen C. When the tax-inclusive 1 key 131 is pressed on any of the screens e1, e2, and e3, the display screen of the display 14 returns to the display screen D.

[0104] As described above, according to the embodiment, when the same tax calculation key but different tax rates are pressed consecutively without entering any numerical values, the result of the previous tax calculation is cleared. At this time, the previously entered numerical values ​​are displayed on the display 14. This allows the user to quickly recalculate the intended tax with a simple operation, even if, for example, the user accidentally presses a different tax calculation key while entering data into the calculator, resulting in a tax calculation that is different from the intended one.

[0105] Furthermore, in conventional calculators, pressing a clear key or the like clears the display, but does not clear the total amount stored in memory, making it impossible to correctly calculate the total amount if an input error occurs. This is not possible in the embodiment, causing inconvenience. In contrast, in the embodiment, when the tax calculation result is cleared, the contents of the subtotal 1 storage area or subtotal 2 storage area also return to the state before the tax calculation. Therefore, the total amount can be calculated correctly.

[0106] In this embodiment, if different tax calculation keys with the same tax rate are pressed consecutively without entering a numerical value, the result of the previous tax calculation is cleared. Therefore, the embodiment can be applied to a calculator with only one tax rate.

[0107] In addition, the embodiments describe an example of application to tax calculations. However, the technology of the embodiments can be applied to various calculators that perform specific calculations using specific preset values. Such specific calculations include currency conversion calculations. In this case, too, if no value is entered and the conversion rate key is pressed repeatedly, the result of the previous conversion calculation can be cleared. In addition, such specific calculations can include a powdered medicine audit calculation.

[0108] In the embodiments, processing is performed in response to the operation of physical keys. Recently, there have been calculation programs that use software keys to perform calculations similar to those performed by a calculator. The embodiments can also be applied to such calculation programs that are operated using software keys.

[0109] Each process according to the above-described embodiment can be stored as a program that can be executed by the processor 11, which is a computer. Alternatively, the program can be stored in a storage medium of an external storage device such as a magnetic disk, an optical disk, or a semiconductor memory and distributed. The processor 11 can then load the program stored in the storage medium of the external storage device, and its operation can be controlled by the loaded program, thereby executing the above-described process.

[0110] The present invention is not limited to the above-described embodiments, and various modifications can be made in the implementation stage without departing from the spirit of the invention. Furthermore, the embodiments may be implemented in appropriate combinations, in which case the combined effects can be obtained. Furthermore, the above-described embodiments include various inventions, and various inventions can be extracted by combining selected elements from the disclosed elements. For example, if the problem can be solved and the desired effect can be obtained even if some elements are deleted from all elements shown in the embodiments, the configuration from which these elements are deleted can be extracted as an invention.

[0111] The following will addendum to inventions that can be extracted from the embodiments of the present invention. [1] a first calculation unit that, when receiving a first instruction input after receiving a numerical value input, performs a first calculation on the numerical value using a first argument; a second calculation unit that, when receiving a second instruction input after receiving an input of a numerical value, performs a second calculation on the numerical value using the first argument; a first control unit that, when the second instruction input is received without inputting a numerical value after the first calculation has been performed, returns the result of the first calculation to an input state immediately before the first instruction input is received; a second control unit that, when the first instruction input is received without inputting a numerical value after the second calculation has been performed, returns the calculation result of the second calculation to the input state immediately before the second instruction input is received; A computer comprising: [2] The computer according to [1], further comprising a first memory control unit that, when the first calculation is performed, if the first calculation has been performed before the first calculation currently performed, stores in the memory unit the sum of a numerical value based on the calculation result of the first calculation performed up to the previous time and a numerical value based on the calculation result when the first calculation is currently performed as a first sum. [3] When the first control unit returns the calculation result of the first calculation to the immediately preceding input state, the first storage control unit stores in the storage unit a value obtained by subtracting a numerical value based on the calculation result of the current first calculation from the stored first total value as a new first total value. [2] The computer according to the present invention. [4] The computer according to any one of [1] to [3], further comprising a second memory control unit that, when the second calculation is performed, if the second calculation has been performed before the second calculation currently performed, stores in the memory unit the sum of a numerical value based on the calculation result of the second calculation performed up to the previous time and a numerical value based on the calculation result when the second calculation is currently performed as a second sum. [5] When the second control unit returns the calculation result of the second calculation to the immediately preceding input state, the second storage control unit stores in the storage unit a value obtained by subtracting a numerical value based on the calculation result when the second calculation is currently performed from the stored second total value as a new second total value. [4] The computer described in [6] A display control unit is further provided that displays the input numerical value, the result of the first calculation, or the result of the second calculation on a display unit; The display control unit When a numerical value is input, the input numerical value is displayed on the display unit; When the first calculation is performed, a result of the first calculation is displayed on the display unit; When the second calculation is performed, the result of the second calculation is displayed on the display unit; When the result of the first calculation or the result of the second calculation is cleared, the numerical value input immediately before the first calculation or the second calculation is performed is displayed on the display unit. [1]-[5]. [7] The display control unit When the first calculation is performed, a first icon indicating that the first calculation has been performed is displayed together with the result of the first calculation; when the second calculation is performed, displaying a second icon indicating that the second calculation has been performed together with the result of the second calculation; When the input numerical value is displayed on the display unit, the display of the first icon or the second icon is erased. [6] The computer described in [8] The first instruction input is input of a tax-included key; The second instruction input is an input of a "tax-excluded" key. [1]-[7]. [9] The first calculation is a tax-inclusive calculation using a first tax rate as the first argument; The second calculation is a tax-excluded calculation using the first tax rate. [1]-[8].

[10] The first calculation is a tax-inclusive calculation using a first tax rate as the first argument; The first total value is a total value of the tax amount calculated from the sum of the numerical value based on the calculation result of the tax-inclusive calculation performed up to the last time and the numerical value based on the calculation result of the tax-inclusive calculation performed this time, and the sum of the numerical value based on the calculation result of the tax-inclusive calculation performed up to the last time and the numerical value based on the calculation result of the tax-inclusive calculation performed this time. [2] or [3].

[11] A display control unit is further provided that switches between displaying the result of the first calculation, the total value of the calculation result including tax, and the total value of the tax amount on the display unit.

[10] The computer described in

[12] The second calculation is a tax-excluded calculation using a first tax rate as the first argument; The second total value is the total of the tax amount calculated from the sum of the numerical value based on the calculation result of the tax-excluded calculation performed up to the last time and the numerical value based on the calculation result of the tax-excluded calculation performed this time, and the sum of the numerical value based on the calculation result of the tax-excluded calculation performed up to the last time and the numerical value based on the calculation result of the tax-excluded calculation performed this time. [4] or [5].

[13] A display control unit is further provided that switches between displaying the calculation result of the second calculation, the total value of the calculation result excluding tax, and the total value of the tax amount on the display unit.

[12] The computer described in

[14] When a first instruction input is received after receiving an input of a numerical value, a first calculation is performed on the numerical value using a first argument; when a second instruction input is received after receiving an input of a numerical value, performing a second calculation on the numerical value using the first argument; after the first calculation is performed, when the second instruction input is received without inputting a numerical value, returning the calculation result of the first calculation to an input state immediately before the first instruction input is received; after the second calculation is performed, when the first instruction input is received without inputting a numerical value, returning the calculation result of the second calculation to an input state immediately before the second instruction input is received; A calculation program for causing a processor to execute the above. [Explanation of symbols]

[0112] 1 calculator, 11 processor, 12 memory, 13 input device, 14 display, 15 power supply module, 131 tax inclusive 1 key, 132 tax exclusive 1 key, 133 tax inclusive 2 key, 134 tax exclusive 2 key, 135 tax calculation total key, 136 fraction selector, 137 decimal point selector.

Claims

1. a first calculation unit that, when receiving a first instruction input after receiving an input of a numerical value, performs a first calculation on the numerical value using a first argument; a second calculation unit that, when receiving a second instruction input after receiving an input of a numerical value, performs a second calculation on the numerical value using the first argument; a first control unit that, when the second instruction input is received without inputting a numerical value after the first calculation is performed, returns the calculation result of the first calculation to an input state immediately before the first instruction input is received; a second control unit that, when the first instruction input is received without inputting a numerical value after the second calculation is performed, returns the calculation result of the second calculation to the input state immediately before the second instruction input is received; A computer comprising:

2. 2. The computer according to claim 1, further comprising a first memory control unit that, when the first calculation is performed, if the first calculation has been performed before the first calculation currently performed, stores in the memory unit a first sum value that is a sum of a numerical value based on the calculation results of the first calculation performed up to the previous time and a numerical value based on the calculation result when the first calculation is currently performed.

3. When the first control unit returns the calculation result of the first calculation to the immediately preceding input state, the first storage control unit stores in the storage unit a value obtained by subtracting a numerical value based on the calculation result when the first calculation is currently performed from the stored first total value as a new first total value.

3. The computer of claim 2.

4. 4. The computer according to claim 1, further comprising a second memory control unit that, when the second calculation is performed, if the second calculation has been performed before the second calculation currently performed, stores in the memory unit a sum of a numerical value based on the calculation result of the second calculation performed up to the previous time and a numerical value based on the calculation result when the second calculation is currently performed as a second sum.

5. When the second control unit returns the calculation result of the second calculation to the immediately previous input state, the second storage control unit stores in the storage unit a value obtained by subtracting a numerical value based on the calculation result when the second calculation is currently performed from the stored second total value as a new second total value.

5. The computer of claim 4.

6. a display control unit that displays on a display unit either the input numerical value, the result of the first calculation, or the result of the second calculation; The display control unit When a numerical value is input, the input numerical value is displayed on the display unit; When the first calculation is performed, a result of the first calculation is displayed on the display unit; When the second calculation is performed, a result of the second calculation is displayed on the display unit; when the result of the first calculation or the result of the second calculation is cleared, the numerical value input immediately before the first calculation or the second calculation is performed is displayed on the display unit.

6. A computer according to any one of claims 1 to 5.

7. The display control unit When the first calculation is performed, a first icon indicating that the first calculation has been performed is displayed together with the result of the first calculation; When the second calculation is performed, a second icon indicating that the second calculation has been performed is displayed together with the result of the second calculation; When the input numerical value is displayed on the display unit, the display of the first icon or the second icon is erased.

7. The computer of claim 6.

8. the first instruction input is an input of a tax-included key, the second instruction input is an input of a "tax-excluded" key; A computer according to any one of claims 1 to 7.

9. the first calculation is a tax-inclusive calculation using a first tax rate as the first argument, The second calculation is a tax-excluded calculation using the first tax rate. A computer according to any one of claims 1 to 8.

10. the first calculation is a tax-inclusive calculation using a first tax rate as the first argument, The first total value is a total value of tax amounts calculated from the sum of a value based on the calculation results of the tax-inclusive calculations performed up to the last time and a value based on the calculation results of the tax-inclusive calculations performed this time, and the sum of a value based on the calculation results of the tax-inclusive calculations performed up to the last time and a value based on the calculation results of the tax-inclusive calculations performed this time.

4. The computer according to claim 2 or 3.

11. a display control unit that switches between displaying the result of the first calculation, the total value of the calculation result including tax, and the total value of the tax amount on a display unit; 11. The computer of claim 10.

12. the second calculation is a tax-excluded calculation using a first tax rate as the first argument, The second total value is the total of the tax amount calculated from the sum of the numerical value based on the calculation result of the tax-excluded calculation performed up to the last time and the numerical value based on the calculation result of the tax-excluded calculation performed this time, and the sum of the numerical value based on the calculation result of the tax-excluded calculation performed up to the last time and the numerical value based on the calculation result of the tax-excluded calculation performed this time.

6. The computer according to claim 4 or 5.

13. a display control unit that switches between displaying the result of the second calculation, the total value of the result of the tax-excluded calculation, and the total value of the tax amount on a display unit; 13. The computer of claim 12.

14. when a first instruction input is received after receiving an input of a numerical value, performing a first calculation on the numerical value using a first argument; When a second instruction input is received after receiving an input of a numerical value, a second calculation is performed on the numerical value using the first argument; after the first calculation is performed, when the second instruction input is received without inputting a numerical value, returning the calculation result of the first calculation to an input state immediately before the first instruction input is received; after the second calculation is performed, when the first instruction input is received without inputting a numerical value, returning the calculation result of the second calculation to an input state immediately before the second instruction input is received; A calculation program for causing a processor to execute the above.

Citation Information

Patent Citations

  • Electronic equipment having calculation function

    JP2000132517A