Display format changing method, electronic device, and program

The method facilitates quick and intuitive format changes in electronic devices by using pinch gestures to switch between fraction, repeating decimal, and decimal formats, addressing the complexity of existing format change operations.

JP7786306B2Active Publication Date: 2025-12-16CASIO COMPUTER CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2022099421
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-06-21
Publication Date
2025-12-16
Estimated Expiration
2042-06-21

AI Technical Summary

Technical Problem

Existing electronic calculators and web applications require complex and non-intuitive operations to change the display format between fractional, repeating decimal, and decimal formats, and similar changes in base number formats, making quick and intuitive format switching impossible.

Method used

A method that allows users to change the display format of numbers between fraction, repeating decimal, and decimal formats through intuitive pinch-in and pinch-out gestures on a touch panel, with threshold-based width determinations to control the format conversion.

Benefits of technology

Enables quick and intuitive format changes by allowing users to switch between display formats using simple gesture operations, enhancing user experience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007786306000001
    Figure 0007786306000001
  • Figure 0007786306000002
    Figure 0007786306000002
  • Figure 0007786306000003
    Figure 0007786306000003
Patent Text Reader

Abstract

To quickly change the display format of numbers using an intuitive operation.SOLUTION: A control unit of an electronic device displays a number on a display unit, and if a user performs a predetermined gesture operation on the displayed number, changes a display format of the number between a fraction format, a repeating decimal format, and a decimal format based on the operation width and operation direction of the gesture operation.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a display format changing method, an electronic device, and a program. [Background technology]

[0002] 2. Description of the Related Art Conventionally, electronic calculators capable of switching between displaying fractions and repeating decimals are known. For example, Patent Document 1 describes that when fraction → repeating decimal conversion mode is selected from the menu screen displayed in response to operation of the menu key on the key input section, and the fraction → repeating decimal conversion mode is set, a fraction is entered and the execute key is pressed, and the fraction is converted to a repeating decimal and displayed. [Prior art documents] [Patent documents]

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

[0004] However, in Patent Document 1, in order to change the display format from a fraction to a repeating decimal, a series of steps such as setting the repeating decimal conversion mode and key operations must be performed, and it is not possible to quickly convert the displayed fraction to a repeating decimal using intuitive operations.

[0005] In addition, electronic calculators and web applications are known that allow repeating decimals to be changed between three display formats: fraction format, repeating decimal format (a display format in which repeating sections are displayed with symbols such as dots, overlines, underlines, or parentheses), and decimal format (a display format in which regular decimals are displayed and repeating sections are displayed repeatedly). However, these require the user to perform an operation procedure to change the display format using a settings screen or setting keys, and the display format cannot be changed quickly and intuitively.

[0006] Furthermore, cases in which the display format of a certain number is changed are not limited to changes between fractional, repeating decimal, and decimal formats, but also include changes to the display format of base numbers such as binary, octal, decimal, and hexadecimal. However, in any case, the change of display format cannot be performed quickly and intuitively.

[0007] The present invention has been made in view of the above problems, and has as its object to enable the number display format to be changed quickly through an intuitive operation. [Means for solving the problem]

[0008] In order to solve the above problem, a display format changing method according to a first aspect of the present invention includes: A predefined number format that can be changed between fraction, repeating decimal, and decimal formats The number is displayed on the display. In the case where Display on the display unit The predetermined When a user performs a predetermined gesture operation on the number, the predetermined Change the display format of numbers between fraction, repeating decimal, and decimal A display control process is executed, and the display control process changes the display format of the predetermined number to a decimal format when the predetermined number is displayed in fractional format on the display unit and a pinch-out operation with an operation width equal to or greater than a first threshold is performed, and changes the display format of the predetermined number to a fraction format when the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a fourth threshold is performed.

[0009] A display format changing method according to a second aspect of the present invention includes: When a predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, is displayed on a display unit, and when a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, a display control process is executed to change the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation, and the display control process changes the display format of the predetermined number to the repeating decimal format when the predetermined number is displayed in fraction format on the display unit and a pinch out operation is performed with an operation width less than a first threshold, and changes the display format of the predetermined number to the fraction format when the predetermined number is displayed in repeating decimal format on the display unit and a pinch in operation is performed. A display format changing method according to a third aspect of the present invention is characterized in that, when a computer displays a predetermined number on a display unit, the display format of which can be changed among a fractional format, a repeating decimal format, and a decimal format, and when a user performs a predetermined gesture operation on the predetermined number displayed on the display unit, the computer executes a display control process to change the display format of the predetermined number among the fractional format, the repeating decimal format, and the decimal format based on the size and direction of the gesture operation.The display control process changes the display format of the predetermined number to the repeating decimal format when the predetermined number is displayed on the display unit in fractional format and a pinch-out operation is performed with an operation width equal to or greater than a second threshold and less than a first threshold, and changes the display format of the predetermined number to the fractional format when the predetermined number is displayed on the display unit in repeating decimal format and a pinch-in operation with an operation width equal to or greater than a third threshold. A display format changing method according to a fourth aspect of the present invention is characterized in that, when a computer displays a predetermined number on a display unit, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, and when a user performs a predetermined gesture operation on the predetermined number displayed on the display unit, the computer executes display control processing to change the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size and direction of the gesture operation, wherein the display control processing changes the display format of the predetermined number to the decimal format when the predetermined number is displayed in the repeating decimal format on the display unit and a pinch-out operation is performed, and changes the display format of the predetermined number to the repeating decimal format when the predetermined number is displayed in the decimal format on the display unit and a pinch-in operation with an operation width less than a fourth threshold. A display format changing method according to a fifth aspect of the present invention is characterized in that, when a computer displays a predetermined number on a display unit, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, and when a user performs a predetermined gesture operation on the predetermined number displayed on the display unit, the computer executes display control processing to change the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size and direction of the gesture operation, wherein the display control processing changes the display format of the predetermined number to the decimal format when the predetermined number is displayed in the repeating decimal format on the display unit and a pinch-out operation with an operation width equal to or greater than a fifth threshold is performed, and changes the display format of the predetermined number to the repeating decimal format when the predetermined number is displayed in the decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a sixth threshold and less than the fourth threshold is performed. [Effects of the Invention]

[0010] According to the present invention, it is possible to quickly change the display format of numbers through an intuitive operation. [Brief explanation of the drawings]

[0011] [Figure 1] 1 is a block diagram showing a functional configuration of an electronic device according to the present invention; [Figure 2] FIG. 10 is a diagram showing a schematic diagram of the size relationship of the widths of repeating decimals when they are displayed in fraction format, repeating decimal format, and decimal format. [Figure 3] FIG. 10 is a diagram schematically illustrating the relationship in size between the widths of finite decimal numbers displayed in fraction format and decimal format. [Figure 4] 1A is a diagram for explaining how the display format of a number with repeating nodes is changed in the electronic device of FIG. 1; FIG. 1B is a diagram for explaining how the display format of a number without repeating nodes is changed in the electronic device of FIG. 1; [Figure 5] 10 is a flowchart showing the flow of a display format change process A executed by the control unit of FIG. 1 in the first embodiment. [Figure 6] 6 is a flowchart showing the flow of the conversion process from fraction format executed in step S4 of FIG. 5. [Figure 7] FIG. 10A is a diagram for explaining the width of a pinch-out, and FIG. 10B is a diagram for explaining the width of a pinch-in. [Figure 8] 6 is a flowchart showing the process of converting from a repeating decimal format, which is executed in step S5 of FIG. 5. [Figure 9] 6 is a flowchart showing the flow of the conversion process from decimal format executed in step S6 of FIG. 5. [Figure 10] 10A is a diagram showing an example of a change in the display format of a number by the display format change process A when a number displayed in fraction format is pinched out on the number, and FIG. 10B is a diagram showing an example of a change in the display format of a number by the display format change process A when a number displayed in repeating decimal format is pinched out on the number, [Figure 11] FIG. 1 is a diagram showing a schematic diagram of the relationship between the widths of numbers displayed in hexadecimal, decimal, octal, and binary notation. [Figure 12] 2 is a diagram for explaining switching among hexadecimal, decimal, octal, and binary numbers in the electronic device of FIG. 1. FIG. [Figure 13] 10 is a flowchart showing the flow of a display format change process B executed by the control unit of FIG. 1 in the second embodiment. [Figure 14]14 is a flowchart showing the flow of the conversion process from hexadecimal numbers executed in step S13 of FIG. 13. [Figure 15] 14 is a flowchart showing the process of converting from decimal numbers executed in step S14 of FIG. 13. [Figure 16] 14 is a flowchart showing the process of converting from an octal number to an octal number, which is executed in step S15 of FIG. [Figure 17] 14 is a flowchart showing the process of converting from binary numbers executed in step S16 of FIG. 13. [Figure 18] 1 is a diagram showing an aspect in which an electronic device is connected to a web server via a communication network such as the Internet. [Figure 19] FIG. 19 is a block diagram showing the functional configuration of the Web server of FIG. 18. DETAILED DESCRIPTION OF THE INVENTION

[0012] Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the embodiments described below are subject to various limitations that are technically preferable for implementing the present invention. Therefore, the technical scope of the present invention is not limited to the following embodiments and illustrated examples.

[0013] First Embodiment [Configuration of electronic device 100] First, the configuration of an electronic device 100 according to a first embodiment of the present invention will be described. 1 is a block diagram showing the functional configuration of an electronic device 100 according to this embodiment. The electronic device 100 may be configured, for example, as a tablet terminal, a smartphone, a PC (Personal Computer), or the like, equipped with a scientific calculator application (referred to as a scientific calculator app) 121, or may be configured as a device dedicated to calculations, and its form is not particularly limited.

[0014] As shown in FIG. 1, the electronic device 100 includes a control unit 11, a storage unit 12, an operation unit 13, a display unit 14, a communication unit 15, etc., and each unit is connected by a bus 16.

[0015] The control unit 11 is configured to include a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), etc. The CPU of the control unit 11 reads out programs and data stored in the ROM and the storage unit 12, and performs various processes using the RAM as a work area, thereby centrally controlling each unit of the electronic device 100.

[0016] The storage unit 12 is configured by a non-volatile semiconductor memory, a hard disk, etc., and stores various programs and data used by the programs. In this embodiment, the storage unit 12 stores a scientific calculator application 121. The scientific calculator application 121 is an application program that causes the control unit 11 to execute various processes related to calculations, including a display format change process A, which will be described later.

[0017] The operation unit 13 includes a touch panel 131 formed by being superimposed on the screen of the display unit 14. The operation unit 13 may further include various operation buttons, and detects operations on the operation buttons and operations on the screen of the display unit 14, and outputs the operation information to the control unit 11.

[0018] The display unit 14 is configured with an LCD (Liquid Crystal Display), an EL (Electro Luminescence) display, or the like, and performs various displays according to display information instructed by the control unit 11.

[0019] The communication unit 15 performs communication control for communicating with external devices via a communication network such as a LAN (Local Area Network) or the Internet.

[0020] [Operation of the electronic device 100] Next, the operation of the electronic device 100 will be described. In the electronic device 100, when the operation unit 13 detects an operation to start the scientific calculator application 121, the control unit 11 starts the scientific calculator application 121 and executes the following process in cooperation with the scientific calculator application 121.

[0021] For example, when scientific calculator application 121 is started, control unit 11 causes an input screen to be displayed on display unit 14. When a certain number of input operations are detected by touch panel 131, control unit 11 causes the input number to be displayed on display unit 14. When input of an arithmetic expression is detected by touch panel 131 and execution is instructed, control unit 11 performs arithmetic processing based on the input and causes display unit 14 to display the arithmetic result.

[0022] Here, there are two types of decimals: finite decimals, which can be expressed using numbers with a finite number of digits, and infinite decimals, which cannot be expressed using numbers with a finite number of digits but can be expressed using numbers with an infinite number of digits. Infinite decimals include repeating decimals, in which the same sequence of digits is repeated infinitely from a certain digit, and non-repeating decimals, which do not repeat. Both finite decimals and repeating decimals are rational numbers and can be expressed as fractions. Non-repeating decimals are irrational numbers and cannot be expressed in fraction form.

[0023] The repeated string of digits in a repeating decimal is called a repeating segment. There are three ways to display a repeating decimal: the regular decimal format (a format in which the repeating segment is displayed repeatedly; called the decimal format), a format in which the repeating segment is displayed with symbols such as dots, overlines, underlines, or parentheses (called the repeating decimal format), and a fraction format.

[0024] When repeating decimals are displayed in various display formats, the display widths generally have the following relationships, although there are exceptions, as shown in Figure 2. Width of fraction format ≦ Width of repeating decimal format ≦ Width of decimal format Also, when a finite decimal number is displayed in decimal or fraction format, the displayed width generally follows the following relationship, as shown in Figure 3, although there are exceptions. Width of fraction format ≦ Width of decimal format The upper limit of the number of digits when displaying in decimal format may be predetermined, may be set by the user using the operation unit 13, or may be determined by the width of the pinch-out operation as described below.

[0025] In electronic device 100, for rational numbers, the user can intuitively change the display format between fraction format, repeating decimal format, and decimal format using gesture operations due to the relationship between the widths of the display formats. Specifically, the display format can be changed using the direction of a pinch operation (pinch in, pinch out). Note that in this specification, changing the display format of a number means changing the representation format of the numbers representing the number without changing the value of the number, and does not include changing the size, color, or font of the number.

[0026] Here, a pinch-in (pinch-in operation) is a gesture operation (pinch operation) of moving two fingers on the touch panel 131 in a direction to narrow the gap between them (to make them smaller), and is generally used to reduce the size of the display. A pinch-out (pinch-out operation) is a gesture operation (pinch operation) of moving two fingers on the touch panel 131 in a direction to widen the gap between them (to make them larger), and is generally used to enlarge the display. Therefore, in this embodiment, the control unit 11 changes (varies) the display format of numbers (rational numbers) based on the size of the operation width of the gesture operation (pinch operation) and the operation direction.

[0027] For example, as shown in FIG. 4(a), if the number to be operated is a number with repeating nodes and is displayed in fraction format, when the user pinches out by moving two fingers apart on the touch panel 131, the control unit 11 changes the display of the target number to a repeating decimal format or a decimal format, which is generally wider than a fraction format. For example, if the width of the pinch-out (see FIG. 7(a)) is small (greater than or equal to the second threshold and less than the first threshold), the display format of the target number is changed to a repeating decimal format, and if the width of the pinch-out is large (greater than or equal to the first threshold), the display format of the target number is not changed. Here, the first threshold is greater than the second threshold.

[0028] When the target number of an operation is a number having repeating nodes and is displayed in the repeating decimal display format, if the user pinches out on touch panel 131 by moving two fingers in a direction widening the gap with a pinch-out width equal to or greater than a fifth threshold, control unit 11 changes the display of the target number to a decimal format that is generally wider than the repeating decimal format. When the user pinches in on touch panel 131 by moving two fingers in a direction narrowing the gap with a pinch-in width equal to or greater than a third threshold (see FIG. 7(b)), control unit 11 changes the display of the target number to a fraction format that is generally narrower than the repeating decimal format. When the target number is displayed in the repeating decimal display format, if the pinch-out width is less than the fifth threshold or the pinch-in width is less than the third threshold, the display format of the target number is not changed.

[0029] If the number to be operated is a number with repeating nodes and is displayed in decimal format, when the user pinches in on the touch panel 131 by moving two fingers closer together, the control unit 11 changes the display of the target number to a repeating decimal format, which is generally narrower than the decimal format, or to a fraction format. For example, if the width of the pinch-in is small (greater than or equal to the sixth threshold and less than the fourth threshold), the display format of the target number is changed to a repeating decimal format, and if the width of the pinch-in is large (greater than or equal to the fourth threshold), the display format of the target number is not changed. Here, the fourth threshold is greater than the sixth threshold.

[0030] Also, as shown in FIG. 4(b), when the target number of an operation is a number without repeating nodes and is displayed in fraction format, if the user pinches out on the touch panel 131 by moving two fingers in a direction to widen the gap between them with a pinch-out width equal to or greater than a first threshold, the control unit 11 changes the display format of the target number to a decimal format, which is generally wider than a fraction format. If the pinch-out width is less than the first threshold, the control unit 11 does not change the display format of the target number. Furthermore, if the pinch-out width is equal to or greater than a seventh threshold, the control unit 11 may change the display format of the target number to a decimal format, and if the pinch-out width is less than the seventh threshold, the control unit 11 may not change the display format of the target number. Here, the seventh threshold is smaller than the first threshold. When a target number does not have a repeating node and is displayed in decimal format, if a user pinches in on the touch panel 131 by moving two fingers closer together with a pinch-in width equal to or greater than a fourth threshold, the control unit 11 changes the display format of the target number to a fraction format, which is generally narrower than the decimal format. If the pinch-in width is less than the fourth threshold, the control unit 11 does not change the display format of the target number. Furthermore, if the pinch-in width is equal to or greater than an eighth threshold, the control unit 11 may change the display format of the target number to decimal format, but if the pinch-in width is less than the eighth threshold, the control unit 11 may not change the display format of the target number. Here, the eighth threshold is smaller than the fourth threshold.

[0031] Here, the second threshold and the third threshold may be the same size, and the fifth threshold and the sixth threshold may be the same size.

[0032] The magnitudes of the first to sixth thresholds may be changed depending on the length of the recurring node of the target number. For example, the first threshold value is a threshold value for determining whether to change the display format of a number from fraction format to repeating decimal format or decimal format, and its size may be, for example, "the width (size) of the entire string of numbers when the target number is displayed in repeating decimal format." The second threshold is a threshold for determining whether to change the display format of the number from fraction format to repeating decimal format, and its size may be, for example, "the width of the entire string of numbers when the target number is displayed in repeating decimal format - the width of the entire string of numbers when displayed in fraction format." The third threshold is a threshold for determining whether to change the display format of a number from repeating decimal format to fraction format, and its size may be, for example, "the width of the entire string of numbers when the target number is displayed in repeating decimal format - the width of the entire string of numbers when displayed in fraction format." The fourth threshold is a threshold for determining whether to convert the display format of a number from decimal format to repeating decimal format or fraction format, and its size may be, for example, "the width of the entire string of numbers when the target number is displayed in decimal format - the width of the entire string of numbers when displayed in fraction format." The fifth threshold is a threshold for determining whether to convert the display format of a number from repeating decimal format to decimal format, and its size may be, for example, "the width of the entire string of numbers when the target number is displayed in decimal format - the width of the entire string of numbers when displayed in repeating decimal format." The sixth threshold is a threshold for determining whether to change the display format of a number from decimal format to repeating decimal format, and its size may be, for example, "the width of the entire string of numbers when the target number is displayed in decimal format - the width of the entire string of numbers when displayed in repeating decimal format."

[0033] 5 is a flowchart showing the flow of display format change processing A executed by control unit 11 when a pinch operation is detected by touch panel 131 while a number is being displayed on display unit 14. Display format change processing A is executed in cooperation between control unit 11 and scientific calculator application 121 stored in storage unit 12.

[0034] First, the control unit 11 determines whether or not the position where the start of a pinch operation is detected by the touch panel 131 is within the valid range for starting a gesture operation for the number displayed on the display unit 14 (step S1). Here, when the control unit 11 causes the display unit 14 to display a number in response to a user input or calculation, the control unit 11 sets a predetermined range including the area in which the number is displayed as the effective range of the gesture operation for the number. In this embodiment, for example, the effective range of the gesture operation for the displayed number is set to a rectangular range extending from a rectangle circumscribing the displayed number (number string) to a position M numbers of the same size as the displayed number on the left and right, and N numbers of the same size as the displayed number (M and N are positive numbers) on the top and bottom. For example, M=1 and N=1 may be used. In step S1, the control unit 11 determines whether the position where the start of a pinch operation is detected by the touch panel 131 is within the effective range of any of the numbers displayed on the display unit 14. Note that if only one of the two fingers is within the effective range, for example, it is determined to be within the effective range, but it may also be determined to be outside the effective range.

[0035] If it is determined that the position where the start of the pinch operation is detected is not within the valid range for starting a gesture operation for the number displayed on the display unit 14 (step S1; NO), the control unit 11 ends the display format change process A.

[0036] If it is determined that the position where the start of the pinch operation is detected is within the valid range for starting a gesture operation for the number displayed on the display unit 14 (step S1; YES), the control unit 11 determines whether the number that was the target of the pinch operation (referred to as the target number) is a rational number (step S2). If it is determined that the target number is not a rational number (step S2; NO), the control unit 11 ends the display format change process A.

[0037] If it is determined that the target number is a rational number (step S2; YES), the control unit 11 determines the display format of the target number (step S3).

[0038] When it is determined that the display format of the target number is fraction format (step S3; fraction format), the control unit 11 executes a conversion process from fraction format (step S4).

[0039] Fig. 6 is a flowchart showing the flow of the conversion process from the fraction format, which is executed in step S4 of Fig. 5. The conversion process from the fraction format is executed by the control unit 11 in cooperation with the scientific calculator application 121 stored in the storage unit 12.

[0040] First, the control unit 11 determines whether the pinch operation that has been performed is a pinch out (step S401). The control unit 11 determines, from the operation direction detected by the touch panel 131, whether the pinch operation that has been performed is a pinch out.

[0041] When it is determined that the performed pinch operation is not a pinch out (step S401; NO), the control unit 11 ends the conversion process from the fraction format.

[0042] When it is determined that the performed pinch operation is a pinch out (step S401; YES), the control unit 11 determines whether or not the target number has a repeating node (step S402). In step S402, the control unit 11 performs an operation to convert the target number (fraction) into a decimal number, and determines whether or not there is a repeating node based on the operation result.

[0043] When it is determined that the number of targets has a repeating node (step S402; YES), the control unit 11 determines whether the width of the pinch-out is equal to or greater than a second threshold value (step S403). Here, the pinch-out width is the amount of change in the distance between two fingers in the X-axis direction (the direction in which the fingers slide) before and after the pinch-out, i.e., the pinch-out operation width. For example, as shown in FIG. 7(a), when a pinch-out is performed with finger A and finger B, if the distance between the touch start points of finger A and finger B is X2 and the distance between the touch end points is X1, the pinch-out width is X1-X2. Here, the touch end point refers to the point at which the detection signal from the touch panel 131 is discontinued. For example, it refers to the positions of both fingers at the time at which at least one of the two fingers separates.

[0044] When it is determined that the width of the pinch-out is not equal to or greater than the second threshold (step S403; NO), the control unit 11 ends the conversion process from the fraction format.

[0045] When it is determined that the width of the pinch-out is equal to or greater than the second threshold (step S403; YES), the control unit 11 determines whether the width of the pinch-out is equal to or greater than the first threshold (step S404).

[0046] If it is determined that the width of the pinch-out is not equal to or greater than the first threshold (is less than the first threshold) (step S404; NO), the control unit 11 converts the number of displayed objects into a repeating decimal format (step S405) and terminates the conversion process from fraction format.

[0047] If it is determined that the width of the pinch-out is equal to or greater than the first threshold (step S404; YES), the control unit 11 converts the number of the displayed object into decimal format (step S406) and ends the conversion process from fraction format.

[0048] On the other hand, if it is determined in step S402 that the target number does not have a repeating node (step S402; NO), the control unit 11 determines whether the width of the pinch-out is equal to or greater than the first threshold value (step S407). When it is determined that the width of the pinch-out is not equal to or greater than the first threshold (step S407; NO), the control unit 11 ends the conversion process from the fraction format.

[0049] If it is determined that the width of the pinch-out is equal to or greater than the first threshold (step S407; YES), the control unit 11 converts the number of the displayed object into decimal format (step S408) and ends the conversion process from fraction format.

[0050] On the other hand, in step S3 of FIG. 5, if it is determined that the display format of the target number is the repeating decimal format (step S3; repeating decimal format), control unit 11 executes a process of changing from the repeating decimal format (step S5).

[0051] Fig. 8 is a flowchart showing the process of converting from the repeating decimal format, which is executed in step S5 of Fig. 5. The process of converting from the repeating decimal format is executed by control unit 11 in cooperation with scientific calculator application 121 stored in storage unit 12.

[0052] First, the control unit 11 determines whether the pinch operation that has been performed is a pinch out (step S501). When it is determined that the performed operation is a pinch out (step S501; YES), the control unit 11 determines whether the width of the pinch out is equal to or greater than a fifth threshold value (step S502). If it is determined that the width of the pinch-out is equal to or greater than the fifth threshold (step S502; YES), the control unit 11 converts the number of displayed objects into decimal format (step S503) and ends the conversion process from the repeating decimal format. When it is determined that the width of the pinch-out is not equal to or greater than the fifth threshold (is less than the fifth threshold) (step S502; NO), the control unit 11 ends the conversion process from the repeating decimal format.

[0053] On the other hand, when it is determined that the performed operation is not a pinch out (step S501; NO), the control unit 11 determines whether the performed operation is a pinch in (step S504). When it is determined that the performed operation is a pinch-in (step S504; YES), the control unit 11 determines whether the width of the pinch-in is equal to or greater than a third threshold value (step S505).

[0054] Here, the width of a pinch-in is the amount of change in the distance between two fingers in the X-axis direction (the direction in which the fingers slide) before and after a pinch-in, that is, the amount of pinch-in operation (operation width). For example, as shown in FIG. 7(b), when a pinch-in is performed with finger A and finger B, if the distance between the touch start points of finger A and finger B is X1 and the distance between the touch end points is X2, the width of the pinch-in is X1-X2. Here, the touch end point refers to the point at which the detection signal from the touch panel 131 is discontinued. For example, it refers to the positions of both fingers at the time at which at least one of the two fingers separates.

[0055] If it is determined that the width of the pinch-in is equal to or greater than the third threshold (step S505; YES), the control unit 11 converts the displayed target number into fraction format (step S506) and ends the conversion process from the repeating decimal format.

[0056] On the other hand, if it is determined in step S504 that the performed operation is neither a pinch out nor a pinch in (step S504; NO), or if it is determined in step S505 that the width of the pinch in is not greater than the third threshold (less than the third threshold) (step S505; NO), the control unit 11 terminates the conversion process from the repeating decimal format.

[0057] On the other hand, in step S3 of FIG. 5, if it is determined that the display format of the target number is decimal format (step S3; decimal format), the control unit 11 executes a conversion process from decimal format (step S6).

[0058] Fig. 9 is a flowchart showing the flow of the conversion process from decimal format, which is executed in step S6 of Fig. 5. The conversion process from decimal format is executed by cooperation between control unit 11 and scientific calculator application 121 stored in storage unit 12.

[0059] First, the control unit 11 determines whether the performed operation is a pinch-in (step S601). When it is determined that the performed operation is not a pinch-in (step S601; NO), the control unit 11 ends the conversion process from the decimal format.

[0060] When it is determined that the performed operation is a pinch-in (step S601; YES), the control unit 11 determines whether or not the target number has a repeating node (step S602). When it is determined that the number of targets has a repeating node (step S602; YES), the control unit 11 determines whether the width of the pinch-in is equal to or greater than a sixth threshold value (step S603).

[0061] When it is determined that the width of the pinch-in is not equal to or greater than the sixth threshold (step S603; NO), the control unit 11 ends the conversion process from the decimal format.

[0062] When it is determined that the width of the pinch-in is equal to or greater than the sixth threshold (step S603; YES), the control unit 11 determines whether or not the width of the pinch-in is equal to or greater than the fourth threshold (step S604).

[0063] If it is determined that the width of the pinch-in is not equal to or greater than the fourth threshold (is less than the fourth threshold) (step S604; NO), the control unit 11 converts the number of displayed objects into a repeating decimal format (step S605) and terminates the conversion process from the decimal format.

[0064] If it is determined that the width of the pinch-in is equal to or greater than the fourth threshold (step S604; YES), the control unit 11 converts the number of the displayed target into fractional format (step S606) and ends the conversion process from decimal format.

[0065] On the other hand, if it is determined in step S602 that the target number does not have a repeating node (step S602; NO), the control unit 11 determines whether the width of the pinch-in is equal to or greater than a fourth threshold value (step S607). When it is determined that the width of the pinch-in is not equal to or greater than the fourth threshold (step S607; NO), the control unit 11 ends the conversion process from the decimal format.

[0066] If it is determined that the width of the pinch-in is equal to or greater than the fourth threshold (step S607; YES), the control unit 11 converts the number of the displayed target into fractional format (step S608) and ends the conversion process from decimal format.

[0067] 10(a) is a diagram showing an example of a change in the display format of a number by the display format change process A when a number is displayed in fraction format and a pinch-out is performed on the number. As shown in FIG. 10(a), when the number is displayed in fraction format, if the user spreads two fingers apart until the pinch-out width reaches a second threshold, the number is changed to a repeating decimal format. If the user further spreads two fingers apart until the pinch-out width reaches a first threshold, the number is changed to a decimal format.

[0068] 10(b) is a diagram showing an example of a change in the display format of a number when a number is displayed in a repeating decimal format and a pinch-out is performed on the number, according to the display format change process A. As shown in FIG. 10(b), when a number is displayed in a repeating decimal format, if two fingers are spread apart until the pinch-out width reaches a fifth threshold, the number is changed to a decimal format.

[0069] In this way, by executing the display format change process A, when a pinch operation is performed on a number displayed on the display unit 14, the control unit 11 changes the display format of the displayed number between fraction format, repeating decimal format, and decimal format based on the size of the operation width and the operation direction. Therefore, the user can easily change the display format of the displayed numbers through an intuitive operation.

[0070] In the conversion process from fraction format, a second threshold may not be set for the pinch-out width, and if the pinch-out width is less than the first threshold, the display format of the target number may be changed to repeating decimal format (or decimal format if there is no repeating node), and if the pinch-out width is equal to or greater than the first threshold, the display format of the target number may be changed to decimal format. In addition, in the conversion process from the repeating decimal format, the fifth threshold may not be set for the width of the pinch-out, and when a pinch-out is performed, control unit 11 may change the display format of the target number to the decimal format. In addition, the third threshold may not be set for the width of the pinch-in, and when a pinch-in is performed, control unit 11 may change the display format of the target number to the fraction format. In addition, in the conversion process from decimal format, if a sixth threshold is not set for the pinyin width and a pinch-in is performed, the control unit 11 may change the display format of the target number to a repeating decimal format (or a fraction format if there is no repeating node) if the pinch-in width is less than the fourth threshold, and may change the display format of the target number to a fraction format if the pinch-in width is equal to or greater than the fourth threshold.

[0071] <Second embodiment> Next, a second embodiment of the present invention will be described. In the first embodiment, an example was described in which the display format of a number displayed on the display unit 14 is changed between a fraction format, a repeating decimal format, and a decimal format using a pinch operation, but in the second embodiment, an example will be described in which the display format of a number displayed on the display unit 14 is changed between a base 2 format, an octal format, a decimal format, and a hexadecimal format. In this embodiment, an example will be described in which the display format is changed between a base 2 format, an octal format, a decimal format, and a hexadecimal format.

[0072] In the second embodiment, scientific calculator application 121 stored in storage unit 12 stores a program for executing display format change process B, which will be described later, instead of or in addition to the program for executing display format change process A. The rest of the configuration of the electronic device in the second embodiment is the same as that of electronic device 100 described in the first embodiment, so the description will be used to refer to the operation of the second embodiment below.

[0073] In the electronic device 100, when the operation unit 13 detects an operation to start the scientific calculator application 121, the control unit 11 starts the scientific calculator application 121 and executes the following process in cooperation with the scientific calculator application 121.

[0074] For example, when scientific calculator application 121 is started, control unit 11 causes an input screen to be displayed on display unit 14. When a certain number of input operations are detected by touch panel 131, control unit 11 causes the input number to be displayed on display unit 14. When input of an arithmetic expression is detected by touch panel 131 and execution is instructed, control unit 11 performs arithmetic processing based on the input and causes display unit 14 to display the arithmetic result.

[0075] Here, in the electronic device 100 of this embodiment, numbers can be displayed in binary, octal, decimal, or hexadecimal notation.

[0076] When a number is displayed in binary, octal, decimal, or hexadecimal, the displayed width generally follows the following relationship, as shown in Figures 11(a) and 11(b), although there are exceptions. Hexadecimal display width ≦ Decimal display width ≦ Octal display width ≦ Binary display width

[0077] In electronic device 100, due to the relationship between the widths of character strings among the above-mentioned base notations, the user can intuitively change the display format of numbers to any of binary, octal, decimal, and hexadecimal by gesture operation. Specifically, the display format can be changed by pinching (pinch in, pinch out).

[0078] As described in the first embodiment, pinch-in is generally used to reduce the display, while pinch-out is generally used to enlarge the display. Therefore, in this embodiment, the control unit 11 changes (varies) the display format (base number display) of numbers between binary, octal, decimal, and hexadecimal based on the size of the operation width of the gesture operation (pinch operation) and the operation direction (pinch in, pinch out).

[0079] 12, when a target number is displayed in hexadecimal, if the user pinches out by moving two fingers apart on the touch panel 131, the control unit 11 changes the display of the target number to decimal, octal, or binary, which generally have a wider width than the hexadecimal display. For example, if the width of the pinch-out is small (less than the first threshold for base conversion), the number is displayed in decimal, if it is medium (first threshold for base conversion≦pinch-out width<second threshold for base conversion), the number is displayed in octal, and if it is large (greater than or equal to the second threshold for base conversion), the number is displayed in binary. The first threshold value for base conversion and the second threshold value for base conversion are predetermined threshold values, and the first threshold value for base conversion<the second threshold value for base conversion.

[0080] When a target number is displayed in decimal, and the user pinches out by moving two fingers on the touch panel 131 in a direction that widens the space between them, the control unit 11 changes the display of the target number to octal or binary, which generally have a wider width than the decimal display. For example, if the width of the pinch out is small (less than the first threshold for base conversion), the display is changed to octal, and if it is medium (first threshold for base conversion≦pinch out width<second threshold for base conversion) or large (greater than or equal to the second threshold for base conversion), the display is changed to binary. When the user pinches in by moving two fingers in a direction that narrows the space between them, the control unit 11 changes the display of the target number to hexadecimal, which generally have a narrower width than the decimal display.

[0081] When a target number is displayed in octal, and the user pinches out by moving two fingers on the touch panel 131 in a direction that widens the gap between them, the control unit 11 changes the display of the target number to binary, which generally has a wider width than the octal display. When the user pinches in by moving two fingers in a direction that narrows the gap between them, the control unit 11 changes the display of the target number to decimal or hexadecimal, which generally has a narrower width than the octal display. For example, if the width of the pinch-in is small (less than the first threshold for base conversion), the number is displayed in decimal, and if the width of the pinch-in is medium (first threshold for base conversion≦width of pinch-in<second threshold for base conversion) or large (greater than or equal to the second threshold for base conversion), the number is displayed in hexadecimal.

[0082] When a target number is displayed in binary, and the user pinches in by moving two fingers closer together on the touch panel 131, the control unit 11 changes the display of the target number to octal, decimal, or hexadecimal, which generally have a narrower width on the display than the binary display. For example, if the width of the pinch-in is small (less than the first threshold for base conversion), the number is displayed in octal, if it is medium (first threshold for base conversion≦width of pinch-in<second threshold for base conversion), the number is displayed in decimal, and if it is large (greater than or equal to the second threshold for base conversion), the number is displayed in hexadecimal.

[0083] 13 is a flowchart showing the flow of display format change processing B executed by control unit 11 when a pinch operation is detected by touch panel 131 while a number is being displayed on display unit 14. Display format change processing B is executed in cooperation between control unit 11 and scientific calculator application 121 stored in storage unit 12.

[0084] First, the control unit 11 determines whether or not the position where the start of a pinch operation is detected by the touch panel 131 is within the valid range for starting a gesture operation for the number displayed on the display unit 14 (step S11). Here, the effective range for starting a gesture operation is the same as that described in the first embodiment, and therefore the same description will be used.

[0085] If it is determined that the position where the start of the pinch operation is detected is not within the valid range for starting a gesture operation for the number displayed on the display unit 14 (step S11; NO), the control unit 11 ends the display format change process B.

[0086] If it is determined that the position where the start of the pinch operation is detected is within the valid range for starting a gesture operation for the number displayed on the display unit 14 (step S11; YES), the control unit 11 determines the display format of the target number (step S12).

[0087] When it is determined that the display format of the target number is hexadecimal (step S12; hexadecimal), the control unit 11 executes a conversion process from hexadecimal (step S13).

[0088] 14 is a flowchart showing the flow of the conversion process from hexadecimal numbers executed by the control unit 11 in step S13 of Fig. 13. The conversion process from hexadecimal numbers is executed by the control unit 11 in cooperation with the scientific calculator application 121 stored in the storage unit 12.

[0089] First, the control unit 11 determines whether the pinch operation that has been performed is a pinch out (step S131). The control unit 11 determines, from the operation direction detected by the touch panel 131, whether the pinch operation that has been performed is a pinch out.

[0090] When it is determined that the performed pinch operation is not a pinch out (step S131; NO), the control unit 11 ends the conversion process from hexadecimal numbers.

[0091] When it is determined that the performed pinch operation is a pinch out (step S131; YES), the control unit 11 determines whether the width of the pinch out is equal to or greater than a predetermined first threshold for base conversion (step S132). If it is determined that the width of the pinch-out is not greater than the predetermined first threshold for base-16 conversion (step S132; NO), the control unit 11 changes the number of the displayed object to a decimal representation (step S133) and terminates the conversion process from hexadecimal.

[0092] In step S132, if it is determined that the width of the pinch-out is equal to or greater than the predetermined first threshold for base conversion (step S132; YES), the control unit 11 determines whether the width of the pinch-out is equal to or greater than the predetermined second threshold for base conversion (step S134). Here, the first base conversion threshold value is smaller than the second base conversion threshold value.

[0093] If it is determined that the width of the pinch-out is not greater than the predetermined second base conversion threshold (step S134; NO), the control unit 11 changes the number of the displayed object to an octal representation (step S135) and terminates the conversion process from hexadecimal. If it is determined that the width of the pinch-out is equal to or greater than the predetermined second threshold for base conversion (step S134; YES), the control unit 11 changes the number of the displayed object to a binary representation (step S136) and terminates the conversion process from hexadecimal.

[0094] On the other hand, in step S12 of FIG. 13, if it is determined that the display format of the target number is decimal (step S12; decimal), the control unit 11 executes conversion processing from decimal (step 14).

[0095] Fig. 15 is a flowchart showing the flow of the conversion process from decimal numbers executed by the control unit 11 in step S14 of Fig. 13. The conversion process from decimal numbers is executed by the control unit 11 in cooperation with the scientific calculator application 121 stored in the storage unit 12.

[0096] First, the control unit 11 determines whether the pinch operation that has been performed is a pinch out (step S141).

[0097] When it is determined that the performed operation is a pinch out (step S141; YES), the control unit 11 determines whether the width of the pinch out is equal to or greater than a predetermined first threshold for base conversion (step S142). If it is determined that the width of the pinch-out is not equal to or greater than the predetermined first threshold for base-10 conversion (step S142; NO), the control unit 11 changes the displayed number of the object to an octal representation (step S143) and terminates the conversion process from decimal.

[0098] In step S142, if it is determined that the width of the pinch-out is equal to or greater than the predetermined first threshold for base conversion (step S142; YES), the control unit 11 changes the number of the displayed object to a binary representation (step S144) and terminates the conversion process from decimal.

[0099] In step S141, when it is determined that the performed operation is not a pinch out (step S141; NO), the control unit 11 determines whether the performed operation is a pinch in (step S145). When it is determined that the performed operation is a pinch-in (step S145; YES), the control unit 11 changes the displayed target number to a hexadecimal number (step S146), and ends the conversion process from decimal number. When it is determined that the performed operation is not a pinch-in (step S146; NO), the control unit 11 ends the conversion process from decimal numbers.

[0100] On the other hand, in step S12 of FIG. 13, if it is determined that the display format of the target number is octal (step S12; octal), the control unit 11 executes a conversion process from octal (step S15).

[0101] Fig. 16 is a flowchart showing the flow of the conversion process from octal numbers executed by the control unit 11 in step S15 of Fig. 13. The conversion process from octal numbers is executed by the control unit 11 in cooperation with the scientific calculator application 121 stored in the storage unit 12.

[0102] First, the control unit 11 determines whether the pinch operation that has been performed is a pinch out (step S151).

[0103] When it is determined that the performed operation is a pinch out (step S151; YES), the control unit 11 changes the number of the displayed object to a binary representation (step S152), and ends the conversion process from an octal representation.

[0104] When it is determined that the performed operation is not a pinch out (step S151; NO), the control unit 11 determines whether the performed operation is a pinch in (step S153). When it is determined that the performed operation is a pinch-in (step S153; YES), the control unit 11 determines whether the width of the pinch-in is equal to or greater than a predetermined first threshold for base conversion (step S154).

[0105] If it is determined that the width of the pinch-in is not greater than the predetermined first threshold for base-1 conversion (step S154; NO), the control unit 11 changes the displayed number of the object to a decimal representation (step S155) and terminates the conversion process from octal. If it is determined that the width of the pinch-in is equal to or greater than the predetermined first threshold for base conversion (step S154; YES), the control unit 11 changes the number of the displayed object to a hexadecimal representation (step S156) and terminates the conversion process from octal.

[0106] When it is determined that the performed operation is not a pinch-in (step S153; NO), the control unit 11 ends the conversion process from octal numbers.

[0107] On the other hand, in step S12 of FIG. 13, when it is determined that the display format of the target number is binary (step S12; binary), the control unit 11 executes a conversion process from binary (step S16).

[0108] Fig. 17 is a flowchart showing the flow of the conversion process from binary numbers executed by the control unit 11 in step S16 of Fig. 13. The conversion process from binary numbers is executed by the control unit 11 in cooperation with the scientific calculator application 121 stored in the storage unit 12.

[0109] First, the control unit 11 determines whether the performed pinch operation is a pinch-in (step S161).

[0110] When it is determined that the performed operation is a pinch-in (step S161; YES), the control unit 11 determines whether the width of the pinch-in is equal to or greater than a predetermined first threshold for base conversion (step S162).

[0111] If it is determined that the width of the pinch-in is not greater than the predetermined first threshold for base conversion (step S162; NO), the control unit 11 changes the displayed number of the object to an octal representation (step S163) and terminates the conversion process from binary.

[0112] If it is determined that the width of the pinch-in is equal to or greater than the predetermined first threshold for base conversion (step S162; YES), the control unit 11 determines whether the width of the pinch-in is equal to or greater than the predetermined second threshold for base conversion (step S164).

[0113] If it is determined that the width of the pinch-in is not greater than the predetermined second threshold for base-10 conversion (step S164; NO), the control unit 11 changes the displayed number of the object to a decimal representation (step S165) and terminates the conversion process from binary.

[0114] If it is determined that the width of the pinch-in is equal to or greater than the predetermined second threshold for base-number conversion (step S164; YES), the control unit 11 changes the displayed number of the object to a hexadecimal representation (step S166) and terminates the conversion process from binary.

[0115] When it is determined that the performed operation is not a pinch-in (step S161; NO), the control unit 11 ends the conversion process from binary numbers.

[0116] In this way, by executing the display format change process B, when a pinch operation is performed on a number displayed on the display unit 14, the control unit 11 changes the display format of the target number between hexadecimal, decimal, octal, and binary based on the size of the operation width and the operation direction. Therefore, the user can easily change the base notation of the displayed number through an intuitive operation.

[0117] 13, the control unit 11 changes the display format (display format) of the numbers displayed on the display unit 14 between four display formats, i.e., primary (hexadecimal display in the examples shown in FIGS. 12 and 13), secondary (decimal display in the examples shown in FIGS. 12 and 13), tertiary (octal display in the examples shown in FIGS. 12 and 13), and quaternary (binary display in the examples shown in FIGS. 12 and 13), based on the direction and width of the pinch operation. However, the display format may be changed between three display formats, i.e., primary, secondary, and tertiary. For example, the display format may be changed between hexadecimal, decimal, and binary based on the direction and width of the pinch operation. When changing the display format between the three display formats, the first, second, and third base numbers are not limited to hexadecimal, decimal, and binary numbers, but may be hexadecimal, decimal, and octal numbers, or hexadecimal, octal, and binary numbers, or decimal, octal, and binary numbers.

[0118] Furthermore, in the above-mentioned display format change process B, the change was made when a pinch operation was performed to change the display format between first and second bases, between second and third bases, and between third and fourth bases, without setting a threshold value for the size of the operation width. However, it is also possible to set a predetermined threshold value (third base conversion threshold value) for the size of the operation width when changing between first and second bases, between second and third bases, and between third and fourth bases, and to change the display format when the size of the operation width is equal to or greater than the predetermined threshold.

[0119] Furthermore, the scientific calculator application 121 may include processing programs for both the display format change process A shown in Fig. 5 and the display format change process B shown in Fig. 13. Switching between changing the display format among fraction format, repeating decimal format, and decimal format (when executing display format change process A) and changing the base number display (when executing display format change process B) may be performed by swiping up or down, for example, or may be automatically switched to the base number display when the target number is an integer. Alternatively, switching may be performed by setting.

[0120] As described above, the control unit 11 of the electronic device 100 displays a number on the display unit 14, and when the user performs a predetermined gesture operation on the number displayed on the display unit 14, the control unit 11 changes the display format of the number between a fraction format, a repeating decimal format, and a decimal format based on the size of the operation width and the operation direction of the gesture operation. Therefore, it is possible to quickly change the number display format between fraction format, repeating decimal format, and decimal format with an intuitive operation.

[0121] For example, when a number is displayed in fractional format on display unit 14 and a pinch-out operation is performed with an operation width less than a first threshold, control unit 11 changes the display format of the number to a repeating decimal format, and when a number is displayed in repeating decimal format on display unit 14 and a pinch-in operation is performed, control unit 11 changes the display format of the number to a fractional format. Therefore, it is possible to quickly change a number between fraction form and repeating decimal form with an intuitive operation.

[0122] Also, for example, when a number is displayed in fractional format on display unit 14 and a pinch-out operation is performed with an operation width equal to or greater than the second threshold and less than the first threshold, control unit 11 changes the display format of the number to a repeating decimal format, and when a number is displayed in repeating decimal format on display unit 14 and a pinch-in operation with an operation width equal to or greater than the third threshold, control unit 11 changes the display format of the number to a fractional format. Therefore, it is possible to quickly change a number between fraction form and repeating decimal form with an intuitive operation.

[0123] Also, for example, when a number is displayed in a repeating decimal format on display unit 14 and a pinch-out operation is performed, control unit 11 changes the display format of the number to a decimal format, and when a number is displayed in a repeating decimal format on display unit 14 and a pinch-in operation with an operation width less than a fourth threshold is performed, control unit 11 changes the display format of the number to a repeating decimal format. Therefore, it is possible to quickly change numbers between the repeating decimal format and the decimal format with an intuitive operation.

[0124] Also, for example, when a number is displayed in a repeating decimal format on display unit 14 and a pinch-out operation with an operation width equal to or greater than a fifth threshold is performed, control unit 11 changes the display format of the number to a repeating decimal format; when a number is displayed in a repeating decimal format on display unit 14 and a pinch-in operation with an operation width equal to or greater than a sixth threshold and less than a fourth threshold is performed, control unit 11 changes the display format of the number to a repeating decimal format. Therefore, it is possible to quickly change numbers between the repeating decimal format and the decimal format with an intuitive operation.

[0125] Also, for example, when a number is displayed in fractional format on display unit 14 and a pinch-out operation with an operation width equal to or greater than a first threshold is performed, control unit 11 changes the display format of the number to decimal format, and when a number is displayed in decimal format on display unit 14 and a pinch-in operation with an operation width equal to or greater than a fourth threshold is performed, control unit 11 changes the display format of the number to fractional format. Therefore, it is possible to quickly change between fraction and decimal formats of numbers with an intuitive operation.

[0126] Furthermore, for example, the control unit 11 changes the number of decimal places to be displayed in the decimal format based on the size of the operation width of the pinch out. Therefore, the number of digits when displayed in decimal format can be changed by an intuitive operation.

[0127] Furthermore, for example, the control unit 11 displays a number on the display unit 14, and when a user performs a predetermined gesture operation on the number displayed on the display unit 14, the control unit 11 changes the display format of the number between at least base 1, base 2, and base 3 based on the size of the operation width and the operation direction of the gesture operation. Therefore, it becomes possible to quickly change the display format of numbers at least between base 1, base 2, and base 3 with an intuitive operation.

[0128] Furthermore, for example, when a gesture operation is performed, the control unit 11 changes the display format of the number between base 1, base 2, base 3, and base 4 based on the size of the operation width and the operation direction of the gesture operation. Therefore, it is possible to quickly change the number display format between base 1, base 2, base 3, and base 4 with an intuitive operation.

[0129] The contents of the description in the first and second embodiments are preferred examples of the display format changing method, electronic device, and program according to the present invention, and are not limited to these. For example, in the first and second embodiments, the electronic device 100 is described as being equipped with a scientific calculator application 121 for executing the display format changing method of the present invention, and the display format changing method of the present invention is realized by cooperation between the control unit 11 of the electronic device 100 and the scientific calculator application 121 installed in the electronic device 100. However, the present invention is not limited to this. For example, as shown in FIG. 18 , the electronic device 100 may be configured to be connected to a web server 200 via a communication network N such as the Internet. A program for executing processing similar to that of the scientific calculator application 121, including the display format changing method of the present invention, may be written in a web application 221 held by the web server 200, and the control unit 11 may access the web server 200 via a web browser installed in the electronic device 100 and execute the web application 221 on the web browser, thereby realizing the display format changing method of the present invention. Here, as shown in FIG. 19, the Web server 200 is configured to include a control unit 21 configured by a CPU etc., a memory unit 22 in which a Web application 221 is stored, an operation unit 23, a display unit 24, and a communication unit 25, and each unit is connected via a bus 26.

[0130] For example, the Web application 221 describes an operation to request the Web server 200 to convert a displayed number into multiple display formats (e.g., three display formats: fraction format, repeating decimal format, and decimal format, and / or four display formats: binary, octal, decimal, and hexadecimal (or any three display formats)) when the number is displayed by inputting the number on the Web browser of the electronic device 100 or by displaying the result of an operation on the Web browser of the electronic device 100. When the control unit 11 displays a number on the display unit 14 in cooperation with the Web browser, the control unit 11 transmits the displayed number to the Web server 200 via the communication unit 15 to request that the number be converted into multiple display formats. The control unit 21 of the Web server 200 converts the number received from the electronic device 100 into the multiple display formats and transmits it to the electronic device 100. The control unit 11 of the electronic device 100 stores the received multiple display formats in RAM or the like. The Web application 221 also describes an operation to execute, in the Web browser, a process similar to the above-described display format change process A, display format change process B, or a variation thereof, when a pinch gesture is detected. When a pinch operation is detected by the touch panel 131, the control unit 11, in cooperation with the web browser based on the web application 221, executes the above-mentioned display format change process A, display format change process B, or a process similar to a variation thereof, and changes and displays the display format of the displayed number based on the direction and width of the pinch operation.

[0131] Furthermore, in the above embodiment, the gesture operation was described as an operation of moving a finger on the screen of the display unit (for example, a pinch operation), but the gesture operation referred to in this invention also includes an operation of moving an operating object other than a finger, such as a mouse or a touch pen, on the screen of the display unit (for example, a drag). For example, in the above embodiment, when a pinch operation is detected, the display format of the target number is changed based on the operation direction (whether pinch in or pinch out) and the operation width of the pinch operation. However, when a mouse drag (or swipe) is detected, the display format of the target number may be changed based on whether the drag (or swipe) is to the right or to the left and the operation width. Generally, in a graph or the like, the (number) increases as you move to the right and decreases as you move to the left. For example, when a rightward drag (or swipe) is detected, the same processing as when a pinch out is detected is performed, and when a leftward drag (or swipe) is detected, the same processing as when a pinch in is detected is performed.

[0132] In the above embodiment, the present invention is applied to a case where the display format is changed between three or four display formats, but the present invention may also be applied to a case where the display format is changed between two display formats. For example, the present invention may be applied to a case where the display format is changed between a fraction format and a decimal format, or between an m-ary number system and an n-ary number system (m and n are positive integers).

[0133] In the above embodiment, an example has been disclosed in which a semiconductor memory such as a ROM or a hard disk is used as a computer-readable medium for the program according to the present invention, but the present invention is not limited to this example. Other non-transitory tangible computer-readable media may include SSDs and portable recording media such as CD-ROMs. Furthermore, a carrier wave may also be used as a medium for providing data for the program according to the present invention via a communication line.

[0134] In addition, the detailed configuration and operation of the electronic device may be modified as appropriate without departing from the spirit of the invention.

[0135] Although the embodiments of the present invention have been described above, the technical scope of the present invention is not limited to the above-described embodiments, but is defined by the claims. Furthermore, the technical scope of the present invention also includes equivalents to the claims that are not related to the essence of the present invention. The inventions described in the claims originally attached to this application are as follows. The claim numbers described in the appendix are the same as those of the claims originally attached to this application. [Note] <Claim 1> The computer The number is displayed on the display. When a user performs a predetermined gesture operation on the number displayed on the display unit, the display format of the number is changed among a fraction format, a repeating decimal format, and a decimal format based on the size of the operation width and the operation direction of the gesture operation. <Claim 2> The computer When the number is displayed in a fraction format on the display unit and a pinch-out operation with an operation width less than a first threshold is performed, changing the display format of the number to a repeating decimal format; 2. The display format changing method according to claim 1, wherein when the number is displayed on the display unit in a repeating decimal format and a pinch-in operation is performed, the display format of the number is changed to a fraction format. <Claim 3> The computer when the number is displayed in fraction format on the display unit and a pinch-out operation is performed with an operation width equal to or greater than a second threshold and less than a first threshold, changing the display format of the number to a repeating decimal format; 3. The display format changing method according to claim 2, wherein when the number is displayed on the display unit in a repeating decimal format and a pinch-in operation with an operation width equal to or greater than a third threshold is performed, the display format of the number is changed to a fraction format. <Claim 4> The computer When the number is displayed in a cyclic decimal format on the display unit and a pinch-out operation is performed, changing the display format of the number to a decimal format; 2. The display format changing method of claim 1, wherein when the number is displayed in decimal format on the display unit and a pinch-in operation with an operation width less than a fourth threshold is performed, the display format of the number is changed to a repeating decimal format. <Claim 5> The computer when the number is displayed in a repeating decimal format on the display unit and a pinch-out operation with an operation width equal to or greater than a fifth threshold is performed, changing the display format of the number to a decimal format; 5. The display format changing method of claim 4, wherein when the number is displayed in decimal format on the display unit and a pinch-in operation is performed with an operation width equal to or greater than a sixth threshold and less than a fourth threshold, the display format of the number is changed to a repeating decimal format. <Claim 6> The computer When the number is displayed in a fractional format on the display unit and a pinch-out operation with an operation width equal to or greater than a first threshold is performed, changing the display format of the number to a decimal format; 2. The display format changing method according to claim 1, wherein when the number is displayed in decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a fourth threshold is performed, the display format of the number is changed to fraction format. <Claim 7> The computer 7. The display format changing method according to claim 4, wherein the number of decimal places to be displayed in the decimal format is changed based on the size of the operation width of the pinch out operation. <Claim 8> The computer The number is displayed on the display. A display format changing method for changing the display format of the number between at least first-base, second-base, and third-base based on the size and direction of the gesture operation when a user performs a predetermined gesture operation on the number displayed on the display unit. <Claim 9> The computer 9. The display format changing method according to claim 8, wherein when the gesture operation is performed, the display format of the number is changed among first-ary, second-ary, third-ary, and fourth-ary based on the size of the operation width and the operation direction of the gesture operation. <Claim 10> a control unit that displays a number on a display unit, and when a user performs a predetermined gesture operation on the number displayed on the display unit, changes the display format of the number among a fraction format, a repeating decimal format, and a decimal format based on the size of the operation width and the operation direction of the gesture operation; An electronic device comprising: <Claim 11> Computer, a control unit that displays a number on a display unit, and when a user performs a predetermined gesture operation on the number displayed on the display unit, changes the display format of the number among a fraction format, a repeating decimal format, and a decimal format based on the size of the operation width and the operation direction of the gesture operation; A program to function as a [Explanation of symbols]

[0136] 100 Electronic equipment 11 Control section 12 Storage section 121 Scientific Calculator App 13 Control section 131 Touch Panel 14 Display section 15 Communications Department 16 Bus

Claims

1. The computer when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, a display control process is executed to change the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control process includes: When the predetermined number is displayed in a fractional format on the display unit and a pinch-out operation with an operation width equal to or greater than a first threshold is performed, the display format of the predetermined number is changed to a decimal format; When the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a fourth threshold is performed, the display format of the predetermined number is changed to a fraction format. A display format changing method comprising:

2. A computer comprising: when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, a display control process is executed to change the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control process includes: when the predetermined number is displayed in a fraction format on the display unit and a pinch-out operation with an operation width less than a first threshold is performed, changing the display format of the predetermined number to a repeating decimal format; When the predetermined number is displayed in a repeating decimal format on the display unit and a pinch-in operation is performed, the display format of the predetermined number is changed to a fraction format. A display format changing method comprising:

3. A computer comprising: when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, a display control process is executed to change the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control process includes: when the predetermined number is displayed in a fraction format on the display unit and a pinch-out operation is performed with an operation width equal to or greater than a second threshold and less than a first threshold, changing the display format of the predetermined number to a repeating decimal format; When the predetermined number is displayed in a repeating decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a third threshold is performed, the display format of the predetermined number is changed to a fraction format. A display format changing method comprising:

4. A computer comprising: when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, a display control process is executed to change the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control process includes: When the predetermined number is displayed in a cyclic decimal format on the display unit and a pinch-out operation is performed, changing the display format of the predetermined number to a decimal format; when the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width less than a fourth threshold is performed, changing the display format of the predetermined number to a repeating decimal format; A display format changing method comprising:

5. A computer comprising: when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, a display control process is executed to change the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control process includes: when the predetermined number is displayed in a repeating decimal format on the display unit and a pinch-out operation with an operation width equal to or greater than a fifth threshold is performed, changing the display format of the predetermined number to a decimal format; when the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a sixth threshold and less than a fourth threshold is performed, changing the display format of the predetermined number to a repeating decimal format; A display format changing method comprising:

6. The display control process changes the number of decimal places to be displayed in decimal format based on the size of the operation width of the pinch-out operation.

6. The display format changing method according to claim 1, claim 4 or claim 5.

7. A display control means is provided for changing the display format of a predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, based on the size of the operation width and the operation direction of the gesture operation when the predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit; The display control means When the predetermined number is displayed in a fractional format on the display unit and a pinch-out operation with an operation width equal to or greater than a first threshold is performed, the display format of the predetermined number is changed to a decimal format; When the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a fourth threshold is performed, the display format of the predetermined number is changed to a fraction format. An electronic device characterized by:

8. A display control means is provided for changing the display format of a predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, on the basis of the size of the operation width and the operation direction of the gesture operation when the predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit; The display control means when the predetermined number is displayed in a fraction format on the display unit and a pinch-out operation with an operation width less than a first threshold is performed, changing the display format of the predetermined number to a repeating decimal format; When the predetermined number is displayed in a repeating decimal format on the display unit and a pinch-in operation is performed, the display format of the predetermined number is changed to a fraction format. An electronic device characterized by:

9. A display control means is provided for changing the display format of a predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, on the basis of the size of the operation width and the operation direction of the gesture operation when the predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit; The display control means when the predetermined number is displayed in a fraction format on the display unit and a pinch-out operation is performed with an operation width equal to or greater than a second threshold and less than a first threshold, changing the display format of the predetermined number to a repeating decimal format; When the predetermined number is displayed in a repeating decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a third threshold is performed, the display format of the predetermined number is changed to a fraction format. An electronic device characterized by:

10. A display control means is provided for changing the display format of a predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, based on the size of the operation width and the operation direction of the gesture operation when the predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, The display control means When the predetermined number is displayed in a cyclic decimal format on the display unit and a pinch-out operation is performed, changing the display format of the predetermined number to a decimal format; when the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width less than a fourth threshold is performed, changing the display format of the predetermined number to a repeating decimal format; An electronic device characterized by:

11. A display control means is provided for changing the display format of a predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, based on the size of the operation width and the operation direction of the gesture operation when the predetermined number, the display format of which can be changed among a fraction format, a repeating decimal format, and a decimal format, is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, The display control means when the predetermined number is displayed in a repeating decimal format on the display unit and a pinch-out operation with an operation width equal to or greater than a fifth threshold is performed, changing the display format of the predetermined number to a decimal format; when the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a sixth threshold and less than a fourth threshold is performed, changing the display format of the predetermined number to a repeating decimal format; An electronic device characterized by:

12. A computer, when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, the display control unit functions as a display control means that changes the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control means When the predetermined number is displayed in a fractional format on the display unit and a pinch-out operation with an operation width equal to or greater than a first threshold is performed, the display format of the predetermined number is changed to a decimal format; When the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a fourth threshold is performed, the display format of the predetermined number is changed to a fraction format. A program characterized by:

13. A computer, when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, the display control unit functions as a display control means that changes the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control means when the predetermined number is displayed in a fraction format on the display unit and a pinch-out operation with an operation width less than a first threshold is performed, changing the display format of the predetermined number to a repeating decimal format; When the predetermined number is displayed in a repeating decimal format on the display unit and a pinch-in operation is performed, the display format of the predetermined number is changed to a fraction format. A program characterized by:

14. A computer, when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, the display control unit functions as a display control means that changes the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control means when the predetermined number is displayed in a fraction format on the display unit and a pinch-out operation is performed with an operation width equal to or greater than a second threshold and less than a first threshold, changing the display format of the predetermined number to a repeating decimal format; When the predetermined number is displayed in a repeating decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a third threshold is performed, the display format of the predetermined number is changed to a fraction format. A program characterized by:

15. A computer, when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, the display control unit functions as a display control means that changes the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control means When the predetermined number is displayed in a cyclic decimal format on the display unit and a pinch-out operation is performed, changing the display format of the predetermined number to a decimal format; when the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width less than a fourth threshold is performed, changing the display format of the predetermined number to a repeating decimal format; A program characterized by:

16. A computer, when a predetermined number whose display format can be changed among a fraction format, a repeating decimal format, and a decimal format is displayed on a display unit and a predetermined gesture operation is performed by a user on the predetermined number displayed on the display unit, the display control unit functions as a display control means that changes the display format of the predetermined number among the fraction format, the repeating decimal format, and the decimal format based on the size of the operation width and the operation direction of the gesture operation; The display control means when the predetermined number is displayed in a repeating decimal format on the display unit and a pinch-out operation with an operation width equal to or greater than a fifth threshold is performed, changing the display format of the predetermined number to a decimal format; when the predetermined number is displayed in decimal format on the display unit and a pinch-in operation with an operation width equal to or greater than a sixth threshold and less than a fourth threshold is performed, changing the display format of the predetermined number to a repeating decimal format; A program characterized by:

Citation Information

Patent Citations

  • Recurring decimal display and recurring decimal display control program

    JP2009110392A

  • Electronic equipment and program

    JP2011022913A

  • System and method for performing calculations using a portable electronic device

    US20130191424A1

  • Information display device and method for editing document data

    WO2011118096A1