[go: up one dir, main page]

CN108563412B - Numerical value change display method and device - Google Patents

Numerical value change display method and device Download PDF

Info

Publication number
CN108563412B
CN108563412B CN201810178218.4A CN201810178218A CN108563412B CN 108563412 B CN108563412 B CN 108563412B CN 201810178218 A CN201810178218 A CN 201810178218A CN 108563412 B CN108563412 B CN 108563412B
Authority
CN
China
Prior art keywords
numerical value
digits
digit
original
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810178218.4A
Other languages
Chinese (zh)
Other versions
CN108563412A (en
Inventor
韦德明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810178218.4A priority Critical patent/CN108563412B/en
Publication of CN108563412A publication Critical patent/CN108563412A/en
Application granted granted Critical
Publication of CN108563412B publication Critical patent/CN108563412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a numerical value change display method and device, and the method comprises the following steps: determining the digit of the currently displayed original numerical value and the digit of the target numerical value to be displayed; if the digit of the original numerical value is not equal to the digit of the target numerical value, adjusting the number of child nodes used for displaying the digits in the container node according to the digit of the original numerical value and the digit of the target numerical value; and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value. Based on the digit relation between the target numerical value and the original numerical value, the number of the child nodes in the container node is increased and decreased in real time, the number head end does not need to supplement a plurality of zeros, the digit of the numerical value does not need to be fixed in advance, the experience of digit change is more intuitive, meanwhile, the number corresponding to each digit in the numerical value is dynamically adjusted independently, and the experience of digit change displayed more intuitively is achieved.

Description

Numerical value change display method and device
Technical Field
The application relates to the technical field of numerical value change, in particular to a numerical value change display method and device.
Background
At present, the application scenarios of numerical value rolling change are more and more, and an existing numerical value change mode is as follows: and rolling the numerical values as a whole, wherein no matter how many digits the numerical values contain, all the digits simultaneously roll and move the animation in the process of changing the numerical values. For example, if the original numerical value is 18 and the target numerical value is 2650, the units and digits in the original numerical value scroll together, the units, tens, hundreds, and thousands in the target numerical value scroll together, and finally the numerical value 2650 with four digits is displayed on the display panel.
In order to improve the intuitive experience of the user on the digital change of each digit, another numerical value change mode is as follows: the digits displayed in each digit in the numerical values are sequentially changed in a rolling mode, the numerical value display length is usually set according to the digit of the maximum numerical value in advance in consideration of the fact that the digits of the original numerical value are inconsistent with the digits of the target numerical value, the numerical values are displayed in a fixed length, and when the digits of the currently displayed numerical values are smaller than the digits of the maximum numerical value, the numerical values are filled in a head-end zero filling mode. For example, the original value is 18, the target value is 2650, and if the maximum digit of the maximum value is "ten thousand", the original value is shown as 00018, and the digits are changed according to the sequence of units, tens, hundreds, thousands, and ten thousand: the ones are scrolled from 8 to 0, the tens are scrolled from 1 to 5, the hundreds are scrolled from 0 to 6, the thousands are scrolled from 0 to 2, and the tens are unchanged, and finally the target numerical value 02650 is displayed on the display board.
Therefore, the existing numerical value change mode cannot intuitively reflect the numerical change corresponding to each digit in the numerical value, and also intuitively reflects the digit change, so that the user experience is poor.
Disclosure of Invention
The embodiment of the application aims to provide a numerical value change display method and device, based on the numerical relation between a target numerical value and an original numerical value, the number of child nodes in a container node for displaying the numerical value is increased and decreased in real time, and aiming at the condition that the numerical value changes, a plurality of zeros do not need to be supplemented at the head end of the numerical value, so that the numerical value does not need to be fixed in advance, the experience of numerical value change is more intuitively achieved, and meanwhile, the digital change display method and device have the experience of numerical change more intuitively achieved by displaying each numerical value by independently and dynamically adjusting the number corresponding to each numerical value in the numerical value.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
the embodiment of the application provides a numerical value change display method, which comprises the following steps:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of bits of the original numerical value is not equal to the number of bits of the target numerical value, adjusting the number of child nodes in the container node according to the number of bits of the original numerical value and the number of bits of the target numerical value, wherein each child node is used for displaying one number of bits; and the number of the first and second groups,
and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
The embodiment of the application provides a numerical value change display method, which comprises the following steps:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, aiming at the digits existing in each original numerical value and the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from the digits corresponding to the digits in the original numerical value to the digits corresponding to the digits in the target numerical value;
in the container node, respectively creating corresponding sub-nodes showing digits for digits which exist in each target numerical value and do not exist in the original numerical value;
and adjusting the number shown by the newly created child node from a preset number to the number corresponding to the digit in the target numerical value.
The embodiment of the application provides a numerical value change display device, includes:
the numerical value digit determining module is used for determining the digits of the currently displayed original numerical value and the digits of the target numerical value to be displayed in the container node for displaying the numerical value;
a display digit adjusting module, configured to adjust the number of child nodes in the container node according to the number of digits of the original value and the number of digits of the target value if the number of digits of the original value is not equal to the number of digits of the target value, where each child node is configured to display one digit; and the number of the first and second groups,
and the display number adjusting module is used for sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
The embodiment of the application provides a numerical value change display device, includes:
the numerical value digit determining module is used for determining the digits of the currently displayed original numerical value and the digits of the target numerical value to be displayed in the container node for displaying the numerical value;
a display digit adjusting module, configured to, if the digits of the original numerical values are smaller than the digits of the target numerical values, adjust, for digits existing in each of the original numerical values and existing in the target numerical values, a digit displayed by a child node of a corresponding display digit from a digit corresponding to the digit in the original numerical values to a digit corresponding to the digit in the target numerical values; adjusting the number shown by the newly created child node from a preset number to a number corresponding to the digit in the target numerical value;
and the display digit adjusting module is used for respectively creating corresponding sub-nodes for displaying digits aiming at digits which exist in each target numerical value and do not exist in the original numerical value in the container node.
The embodiment of the application provides a numerical value change display device, includes: a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of bits of the original numerical value is not equal to the number of bits of the target numerical value, adjusting the number of child nodes in the container node according to the number of bits of the original numerical value and the number of bits of the target numerical value, wherein each child node is used for displaying one number of bits; and the number of the first and second groups,
and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
The embodiment of the application provides a numerical value change display device, includes: a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, aiming at the digits existing in each original numerical value and the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from the digits corresponding to the digits in the original numerical value to the digits corresponding to the digits in the target numerical value;
in the container node, respectively creating corresponding sub-nodes showing digits for digits which exist in each target numerical value and do not exist in the original numerical value;
and adjusting the number shown by the newly created child node from a preset number to the number corresponding to the digit in the target numerical value.
Embodiments of the present application provide a storage medium for storing computer-executable instructions, which when executed implement the following processes:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of bits of the original numerical value is not equal to the number of bits of the target numerical value, adjusting the number of child nodes in the container node according to the number of bits of the original numerical value and the number of bits of the target numerical value, wherein each child node is used for displaying one number of bits; and the number of the first and second groups,
and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
Embodiments of the present application provide a storage medium for storing computer-executable instructions, which when executed implement the following processes:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, aiming at the digits existing in each original numerical value and the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from the digits corresponding to the digits in the original numerical value to the digits corresponding to the digits in the target numerical value;
in the container node, respectively creating corresponding sub-nodes showing digits for digits which exist in each target numerical value and do not exist in the original numerical value;
and adjusting the number shown by the newly created child node from a preset number to the number corresponding to the digit in the target numerical value.
The numerical value change display method and the numerical value change display device in the embodiment of the application determine the digit of the currently displayed original numerical value and the digit of the target numerical value to be displayed; if the digit of the original numerical value is not equal to the digit of the target numerical value, adjusting the number of child nodes in the container node for displaying the numerical value according to the digit of the original numerical value and the digit of the target numerical value; and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value. Based on the digit relation between the target numerical value and the original numerical value, the number of child nodes in the container node for displaying the numerical value is increased and decreased in real time, and aiming at the condition that the digit changes, the numerical value head end does not need to supplement a plurality of zeros, so that the digit of the numerical value does not need to be fixed in advance, the experience of the change of the digit is more intuitive, and meanwhile, the digital change experience of the display of each digit is more intuitive by independently and dynamically adjusting the corresponding digit in the numerical value.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a first flowchart illustrating a numerical variation display method according to an embodiment of the present application;
fig. 2 is a second flowchart of a method for displaying a value change according to an embodiment of the present disclosure, in which the number of bits of an original value is smaller than the number of bits of a target value;
fig. 3a is one of the effect diagrams presented by the present application for the value variation of the original value with the number of bits smaller than the number of bits of the target value according to an embodiment of the present application;
FIG. 3b is a second diagram illustrating an effect of a numerical variation of an original numerical value having a smaller number than a target numerical value according to an embodiment of the present application;
fig. 3c is a third schematic diagram illustrating an effect of a numerical change in which the number of bits of the original numerical value is smaller than that of the target numerical value according to an embodiment of the present application;
FIG. 3d is a fourth diagram illustrating an effect of a numerical change of an original numerical value having a smaller number than a target numerical value according to an embodiment of the present disclosure;
fig. 3e is a fifth diagram illustrating an effect of a numerical change shown for a bit number of an original numerical value smaller than a bit number of a target numerical value according to an embodiment of the present application;
fig. 4 is a third flowchart illustrating a method for displaying a numerical value change according to an embodiment of the present application, in which the number of bits of an original numerical value is greater than the number of bits of a target numerical value;
fig. 5a is one of the effect diagrams presented by the present application for the value variation of the original value with the number of bits larger than the number of bits of the target value according to an embodiment of the present application;
FIG. 5b is a second diagram illustrating an effect of a numerical variation of an original numerical value having a greater number than a target numerical value according to an embodiment of the present application;
fig. 5c is a third schematic diagram illustrating an effect of a numerical change shown for a bit number of an original numerical value greater than a bit number of a target numerical value according to an embodiment of the present application;
FIG. 5d is a fourth diagram illustrating an effect of a numerical change of an original numerical value having a greater number of digits than a target numerical value according to an embodiment of the present disclosure;
fig. 6 is a first flowchart of a method for displaying numerical value changes according to another embodiment of the present application;
fig. 7 is a second flowchart of a method for displaying numerical value changes according to another embodiment of the present application;
fig. 8 is a schematic block diagram of a numerical variation display apparatus according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a numerical value change display apparatus according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a numerical value change display method and device, based on the numerical relation between a target numerical value and an original numerical value, the number of child nodes in a container node for displaying the numerical value is increased and decreased in real time, and aiming at the condition that the numerical value changes, a plurality of zeros do not need to be supplemented at the head end of the numerical value, so that the numerical value of the numerical value does not need to be fixed in advance, the experience of more intuitively changing the numerical value is provided, and meanwhile, the digital change display method and device have the experience of more intuitively displaying each numerical value by independently and dynamically adjusting the number corresponding to each numerical value in the numerical value.
Fig. 1 is a first flowchart of a value change display method according to an embodiment of the present application, where the method in fig. 1 can be executed by a server and also can be executed by a terminal device, where the terminal device may be a mobile terminal device such as a mobile phone and a tablet computer, and may also be a terminal device such as a personal computer, and as shown in fig. 1, the method at least includes the following steps:
s101, determining the digit of a currently displayed original numerical value and the digit of a target numerical value to be displayed in a container node for displaying the numerical value;
wherein a numerical value refers to the magnitude of an amount represented by a number, and a number is written on a digit to represent a numerical value of a certain size; the digit refers to the number of natural digits, for example, a digit with one digit is a digit, a digit with two digits is a two digit, and so on; the digit refers to the position occupied by each digit of a number, the position of the number is, for example, the first digit from the right of the number is the unit digit, the second digit is the tens digit, that is, the number with the digit 4 includes the unit digit, the tens digit, the hundreds digit and the thousands digit, the maximum digit of the number is the thousands digit, and the same number has different counting units due to different digits, so the number is different.
S102, if the digit of the original numerical value is not equal to the digit of the target numerical value, adjusting the number of sub-nodes in the container node for displaying the numerical value according to the digit of the original numerical value and the digit of the target numerical value, wherein each sub-node is used for displaying one digit;
the container nodes for displaying the numerical values comprise at least one display digit for displaying at least one number in the numerical values, namely each display digit is used for displaying one number, in one case, the digit of the original numerical value is less than the digit of the target numerical value, namely, the number of child nodes in the container nodes for displaying the numerical values needs to be increased, namely, the number of the display digits is increased, and in the other case, the digit of the original numerical value is greater than the digit of the target numerical value, namely, the number of child nodes in the container nodes for displaying the numerical values needs to be reduced, namely, the number of the display digits is reduced; and the number of the first and second groups,
s103, sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value;
in the process of displaying the change of the numerical value, the number of the sub-nodes in the container node needs to be adjusted, and the number displayed by each sub-node needs to be dynamically adjusted, so that the numerical value displayed in the container node for displaying the numerical value is dynamically switched from one numerical value to another numerical value.
The container node for displaying the numerical value may be an html node, the container node includes at least one child node for displaying the numerical digit, each child node for displaying the numerical digit may also be an html node, the container node is an outermost node located in the at least one child node for displaying the numerical digit, a relationship between the container node for displaying the numerical value and the child node for displaying the numerical digit is a parent-child relationship included in each other, that is, a plurality of child nodes are nested in one html node, the container node for displaying the numerical value is called a parent node, and a relationship between two child nodes for displaying the numerical digit is a parallel relationship.
The html node can be set according to actual conditions, and since the number of digits of the numerical value displayed in the container node for displaying the numerical value is variable, the width of the container node is set to be a null value (i.e., the size in the direction of digit arrangement is not limited) in specific implementation, and at this time, the width of the container node is adjusted along with the increase and decrease of the number of digits of the numerical value; the width of each sub-node for displaying the digits is set as a preset value, and the preset value can be set according to actual conditions; the child nodes for increasing the display digits in the container nodes are html nodes for increasing the target number in the html nodes on the outermost layer, and the child nodes for reducing the display digits in the container nodes are html nodes for deleting the target number in the html nodes on the outermost layer.
In the embodiment of the application, based on the digit relation between the target numerical value and the original numerical value, the number of the child nodes in the container node for displaying the numerical value is increased and decreased in real time, and the numerical value head end does not need to supplement a plurality of zeros aiming at the condition that the digit changes, so that the digit of the numerical value does not need to be fixed in advance, the experience of the change of the digit more intuitively is achieved, and meanwhile, the digital change experience of the display of each digit more intuitively is achieved by independently and dynamically adjusting the number corresponding to each digit in the numerical value.
It should be noted that the execution sequence of steps S102 and S103 is not limited, and in specific implementation, the order between the adjustment of the number of digits shown in the container node and the adjustment of the number shown in each child node is not limited, and one implementation manner is: firstly, adjusting the number of the display digits, and then sequentially adjusting the digits displayed by each child node; the other realization mode is as follows: the method comprises the steps of firstly adjusting the numbers displayed by the child nodes of the existing displayed digits in sequence, then increasing the displayed digits which do not exist in the original numerical value but exist in the target numerical value, and then sequentially adjusting the numbers displayed by the child nodes of the newly-added displayed digits, namely, firstly rolling and adjusting the numbers displayed by the child nodes of the existing displayed digits and then rolling and adjusting the numbers displayed by the child nodes of the newly-added displayed digits, or firstly sequentially adjusting the numbers displayed by the child nodes of the existing displayed digits and then deleting the displayed digits which do not exist in the target numerical value.
As shown in fig. 2, for the case that the number of the display digits is adjusted and the digit of the original numerical value is smaller than the digit of the target numerical value, that is, the number of the child nodes in the container node for displaying the numerical value needs to be increased, the step S102 adjusts the number of the child nodes in the container node for displaying the numerical value according to the digit of the original numerical value and the digit of the target numerical value, and specifically includes:
and S1021, in a container node for displaying numerical values, aiming at the numerical digits existing in each target numerical value and not existing in the original numerical value, respectively creating corresponding sub-nodes for displaying the numerical digits, wherein the node is an html node, the container node comprises a plurality of sub-nodes for displaying the numerical digits, each displayed numerical digit corresponds to one html node, and each html node displays a number.
Further, in order to enable the display of the value displayed in the container node for displaying the value in a centered manner and keep the display digit corresponding to each node unchanged, before creating the child nodes of the corresponding display digits respectively at S1021, the method further includes:
s1022, if the digit of the original numerical value is smaller than the digit of the target numerical value, determining a first moving direction according to the digit of the original numerical value and the digit of the target numerical value; and moving the corresponding sub-node for displaying the digits based on the first moving direction for the digits existing in the original numerical value, specifically, the moving direction of the sub-node for displaying the digits is determined by the magnitude relation between the digits of the original numerical value and the digits of the target numerical value, when the digits of the original numerical value are smaller than the digits of the target numerical value, the moving direction is right shift, namely, the digits existing in the original numerical value are right shifted, and digits of the target numerical value, which are more increased than the original numerical value, are created at the left end; the moving distance of the child node showing the number is determined by the absolute value of the difference between the number of the original value and the number of the target value, and the moving distance is the product of half of the absolute value of the difference and the preset length occupied by one node, for example, if the number of the original value is 2 and the number of the target value is 4, the moving distance is the preset length occupied by one node.
Wherein, for the case that the digits displayed by the child nodes displaying digits are adjusted and the digits of the original numerical value are smaller than the digits of the target numerical value, the S103 sequentially adjusts the digits displayed by the child nodes according to the digits corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value, and specifically includes:
aiming at digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node for showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value;
and aiming at the digits which do not exist in each original numerical value and exist in the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from preset digits to the digits corresponding to the digits in the target numerical value.
Specifically, the number displayed by each child node in the container node for displaying the numerical value may be adjusted through the following two implementation manners, specifically:
one implementation is as follows: after the display digits which are not present in the original numerical value but present in the target numerical value are added, the digits displayed by the child nodes in the container node for displaying the numerical value are sequentially adjusted, wherein the digits displayed by the child nodes for displaying the numerical value are sequentially adjusted according to the sequence of the digits from small to large, for example, the digit displayed in the unit digit is adjusted first, then the digit displayed in the tens digit is adjusted, then the digit displayed in the hundreds digit is adjusted, and so on until the digit displayed in the maximum digit is adjusted to the digit corresponding to the digit in the target numerical value.
The other realization mode is as follows: firstly, sequentially adjusting the numbers displayed by the existing digits in the original numerical values, then, sequentially adjusting the numbers displayed by the sub-nodes of the newly-added displayed digits after increasing the displayed digits which do not exist in the original numerical values but exist in the target numerical values, namely, aiming at the digits which exist in each original numerical value and exist in the target numerical values, adjusting the numbers displayed by the corresponding sub-nodes of the displayed digits from the numbers corresponding to the digits in the original numerical values to the numbers corresponding to the digits in the target numerical values; after corresponding sub-nodes for displaying digits are respectively created for digits which exist in each target numerical value and do not exist in the original numerical value, aiming at digits which do not exist in each original numerical value and exist in the target numerical value, the digits displayed by the corresponding sub-nodes for displaying digits are adjusted to the digits corresponding to the digits in the target numerical value from preset digits.
In specific implementation, for the case that the number of bits of the original value is smaller than the number of bits of the target value, taking the original value as "0" and the target value as "55", as shown in fig. 3a, the number of bits of the original value is 1, the number of bits of the original value has one bit, a container node for displaying the value includes one display bit, i.e., one bit, an html node for creating the display bit, and the number displayed by a child node of the display bit is "0"; based on the number corresponding to each digit in the original numerical value and the number corresponding to each digit in the target numerical value, it can be known that the number displayed in the unit digit is changed from "0" to "5", and a display digit, namely, ten digits, needs to be added to the container node for displaying the numerical value, the initial value displayed in the ten digits is a preset number, and the number displayed in the ten digits is changed from the "preset number" to "5".
As shown in FIG. 3b, the number shown by the bits in the container node used to show the value is changed from "0" to "5" by the css3 (cascading Style sheet) animation scrolling up.
As shown in fig. 3c, the child node of the existing display digit is moved to the first preset direction, i.e. the child node corresponding to the unit digit is moved to the right, and the width of the newly added display digit is gradually adjusted to a preset width, so as to ensure that the numerical value is displayed in the middle, the distance of the right movement of the child node corresponding to the unit digit is half of the preset length occupied by one node.
As shown in fig. 3d, for each new sub-node corresponding to the display digit, a preset number is displayed at the node, for example, a "0" is displayed at the sub-node corresponding to the new ten digits.
As shown in fig. 3e, the number displayed by the newly added node is dynamically scrolled from the preset value to the target number required to be displayed by the display digit corresponding to the node, i.e. the number displayed by the tens in the container node for displaying the value is scrolled upwards from "0" to "5" through the css3 (cascading style sheet) animation.
In the numerical value change display process, the processes of creating new display digits and moving the existing display digits are synchronously carried out, and when the preset digits fully occupy the new child nodes, the child nodes with the existing display digits stop moving; and the number displayed at the sub-node of the newly added displayed digit is switched from the preset number to the number corresponding to the digit in the target numerical value in a rolling mode.
As shown in fig. 4, for the case that the number of the display digits is adjusted and the digit of the original numerical value is greater than the digit of the target numerical value, that is, the number of the child nodes in the container node for displaying the numerical value needs to be reduced, the step S102 adjusts the number of the child nodes in the container node for displaying the numerical value according to the digit of the original numerical value and the digit of the target numerical value, which specifically includes:
s1023, if the number of digits of the original numerical value is greater than the number of digits of the target numerical value, deleting a corresponding child node for displaying the number of digits in a container node for displaying the numerical value, where the node is an html node, the container node includes a plurality of displayed digits, each displayed digit corresponds to an html node, each html node displays a digit, the number of digits of the target numerical value is reduced from that of the original numerical value, and the child node corresponding to the digit having the left-end original numerical value but not having the target numerical value needs to be deleted.
Further, in order to enable the displayed value in the container node for displaying the value to be displayed in a centered manner and the corresponding display digit of each node to be kept unchanged, after deleting the corresponding child node of the display digit, the method further includes, at S1023:
s1024, determining a second moving direction according to the digit of the original numerical value and the digit of the target numerical value; and moving the corresponding sub-node for displaying the digits based on the second moving direction for the digits existing in the target numerical value, specifically, the moving direction of the sub-node for displaying the digits is determined by the magnitude relation between the digits of the original numerical value and the digits of the target numerical value, when the digits of the original numerical value are greater than the digits of the target numerical value, the moving direction is left-shift, namely, the digits of the original numerical value at the left end which are more redundant than the digits of the target numerical value are deleted, and the rest sub-nodes for displaying the digits are left-shifted; the moving distance of the child node showing the number is determined by the absolute value of the difference between the number of the original value and the number of the target value, and the moving distance is the product of half of the absolute value of the difference and the preset length occupied by one node, for example, if the number of the original value is 2 and the number of the target value is 4, the moving distance is the preset length occupied by one node.
Wherein, for the case that the digits displayed by the child nodes displaying digits are adjusted and the digits of the original numerical value are smaller than the digits of the target numerical value, the S103 sequentially adjusts the digits displayed by the child nodes according to the digits corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value, and specifically includes:
and aiming at the digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node for showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value.
In specific implementation, for the case that the number of digits of the original numerical value is greater than the number of digits of the target numerical value, taking the original numerical value as "55" and the target numerical value as "0", as shown in fig. 5a, the number of digits of the original numerical value is 2, the number of digits of the original numerical value has one place and ten places, two display digits, namely, the one place and the ten places in sequence from right to left, are included in a container node for displaying the numerical value, an html node for displaying each display digit is created, and the number displayed in the one place is "5" and the number displayed in the ten places is "5"; based on the number corresponding to each digit in the original value and the number corresponding to each digit in the target value, it can be known that the number shown in one digit is changed from "5" to "0", and one shown digit, that is, ten digits, needs to be deleted in the container node for showing the value.
As shown in fig. 3b, gradually adjusting the width of the redundant display digits of the original numerical value compared to the target numerical value from the preset width to 0, that is, gradually deleting ten digits, moving the remaining child nodes of the display digits to a second preset direction, that is, moving the child nodes corresponding to one digit to the left, wherein in order to ensure that the numerical value is displayed in the middle, the distance that the child nodes corresponding to one digit move to the left is half of the preset length occupied by one node.
As shown in fig. 3c, only the digits, i.e. bits, of the target value are contained in the container node for showing the value, and the bits are displayed centrally.
As shown in fig. 3d, the numbers displayed by the remaining child nodes are dynamically scrolled from the currently displayed number to the target number required to be displayed by the displayed digit corresponding to the node, and specifically, the number displayed by the digit in the container node for displaying the value is changed from "5" to "0" by means of the cs 3 (cascading style sheet) animation.
In the process of displaying the change of the number value, the processes of deleting redundant display numbers and moving the residual display numbers are synchronously carried out, and when the deletion of the redundant display numbers is finished, the sub-nodes of the residual display numbers stop moving; and the numbers displayed at the rest of the sub-nodes displaying the digits are switched from the digits corresponding to the digits in the original numerical value to the digits corresponding to the digits in the target numerical value in a rolling mode.
Further, considering that there may be a case where the original value is taken as a whole, it is necessary to split each digit in the original value into independent sub-nodes, that is, each display digit corresponds to a node, and based on this, the method further includes:
according to the digit of the original numerical value, carrying out digit splitting processing on the original numerical value;
in a container node for displaying numerical values, for each digit existing in an original numerical value, a child node of the corresponding displayed digit is created, where the node is an html node, the container node for displaying numerical values includes a plurality of displayed digits, each displayed digit corresponds to an html node, that is, each digit in the original numerical value is converted into an html node, and each html node displays a digit, for example, the original numerical value is a numerical value with a digit of 4, and the original numerical value includes a digit, a ten digit, a hundred digit, and a thousand digit.
Further, for the case that the number of digits of the numerical value is large, in order to facilitate the increase of visually distinguishing the digits for the user, a plurality of separators may be added to the container node for displaying the numerical value according to a preset rule, and based on this, the method further includes:
the position of the separator to be added is determined based on the maximum digit of the original value and the maximum digit of the target value, for example, one after three digits is added, as the separator, if the original value is a value with a digit number of 3 (e.g., 156), i.e., the maximum digit of the original value is hundred digits, the target value is a value with a digit number of 4 (e.g., 8230), i.e., the maximum digit of the target value is thousand digits, and the position of the separator to be added is between hundred digits and thousand digits, at this time, the value finally shown in the container node for showing the value is 8,230.
In a container node for displaying numerical values, creating a child node for displaying the separator according to the determined position of the separator to be added, wherein the node is an html node, the container node for displaying the numerical values not only comprises a plurality of display digits, but also comprises at least one separator, each display digit corresponds to an html node, and each separator also corresponds to an html node.
The numerical value change display method in the embodiment of the application determines the digit of a currently displayed original numerical value and the digit of a target numerical value to be displayed; if the digit of the original numerical value is not equal to the digit of the target numerical value, adjusting the number of child nodes in the container node for displaying the numerical value according to the digit of the original numerical value and the digit of the target numerical value; and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value. Based on the digit relation between the target numerical value and the original numerical value, the number of child nodes in the container node for displaying the numerical value is increased and decreased in real time, and aiming at the condition that the digit changes, the numerical value head end does not need to supplement a plurality of zeros, so that the digit of the numerical value does not need to be fixed in advance, the experience of the change of the digit is more intuitive, and meanwhile, the digital change experience of the display of each digit is more intuitive by independently and dynamically adjusting the corresponding digit in the numerical value.
Based on the same technical concept, another embodiment of the present application further provides a method for displaying a numerical value change corresponding to the method for displaying a numerical value change described in fig. 1 to fig. 5d, fig. 6 is a first flowchart of the method for displaying a numerical value change provided in another embodiment of the present application, where the method in fig. 6 can be executed by a server or a terminal device, the terminal device can be a mobile terminal device such as a mobile phone or a tablet computer, or a terminal device such as a personal computer, and as shown in fig. 6, the process includes:
s601, determining the digit of the currently displayed original numerical value and the digit of the target numerical value to be displayed in the container node for displaying the numerical value;
s602, if the number of bits of the original numerical value is less than the number of bits of the target numerical value, aiming at the number of bits existing in each original numerical value and the target numerical value, adjusting the number displayed by the corresponding sub-node displaying the number of bits from the number corresponding to the number in the original numerical value to the number corresponding to the number in the target numerical value;
s603, in the container nodes for displaying numerical values, aiming at the numerical digits existing in each target numerical value and not existing in the original numerical value, respectively creating corresponding sub-nodes for displaying the numerical digits;
s604, adjusting the number displayed by the newly created child node from a preset number to a number corresponding to the digit in the target value.
In the embodiment of the application, the number of the child nodes in the container node for displaying the numerical value is adjusted in real time based on the numerical relation between the target numerical value and the original numerical value, the numerical value head end does not need to supplement a plurality of zeros aiming at the condition that the numerical value changes, the numerical value head end does not need to fix the numerical value in advance, the experience of the numerical value change is more intuitive, and meanwhile, the digital change experience of each numerical value display is more intuitive due to independent dynamic adjustment of the corresponding number of each numerical value in the numerical value.
Further, in order to enable the displayed value in the container node for displaying the value to be centered and the corresponding display digit of each node to be kept unchanged, as shown in fig. 7, before creating the corresponding child nodes of the display digits in S603, the method further includes:
s605, determining a first moving direction according to the digit of the original numerical value and the digit of the target numerical value; and moving the corresponding sub-node showing the digits according to the first moving direction aiming at the digits existing in the original numerical value.
Further, considering that there may be a case where the original value is taken as a whole, it is necessary to split each digit in the original value into independent sub-nodes, that is, each display digit corresponds to a node, and based on this, the method further includes:
according to the digit of the original numerical value, carrying out digit splitting processing on the original numerical value;
in the container node for presenting numerical values, for the digits existing in each original numerical value, corresponding child nodes for presenting digits are respectively created.
Further, for the case that the number of digits of the numerical value is large, in order to facilitate the increase of visually distinguishing the digits for the user, a plurality of separators may be added to the container node for displaying the numerical value according to a preset rule, and based on this, the method further includes:
determining the position of the separator to be added according to the maximum digit of the original numerical value and the maximum digit of the target numerical value;
and in the container node for displaying the numerical value, creating a child node for displaying the separators according to the determined positions of the separators to be added.
The numerical value change display method in the embodiment of the application determines the digit of a currently displayed original numerical value and the digit of a target numerical value to be displayed; if the digits of the original numerical values are smaller than the digits of the target numerical values, aiming at the digits existing in each original numerical value and the target numerical values, adjusting the digits displayed by the corresponding sub-nodes displaying the digits from the digits corresponding to the digits in the original numerical values to the digits corresponding to the digits in the target numerical values; in a container node for displaying numerical values, aiming at numerical digits existing in each target numerical value and not existing in the original numerical value, respectively creating corresponding sub-nodes for displaying the numerical digits; and adjusting the number displayed by the newly created child node from a preset number to a number corresponding to the digit in the target numerical value. The number of the child nodes in the container node used for displaying the numerical value is adjusted in real time based on the numerical relation between the target numerical value and the original numerical value, and aiming at the condition that the numerical value changes, the numerical value head end does not need to supplement a plurality of zeros, so that the numerical value does not need to be fixed in advance, the experience of more intuitively changing the numerical value is achieved, and meanwhile, the number corresponding to each numerical value in the numerical value is dynamically adjusted independently, and the experience of more intuitively displaying the numerical value is achieved.
It should be noted that, since another embodiment of the present application and an embodiment of the present application are based on the same inventive concept, specific implementation of the embodiment may refer to implementation of the foregoing method for showing numerical variation, and repeated details are not repeated.
Corresponding to the numerical value change display method described in fig. 1 to 7, based on the same technical concept, an embodiment of the present application further provides a numerical value change display apparatus, and fig. 8 is a schematic diagram of module components of the numerical value change display apparatus provided in the embodiment of the present application, where the apparatus is configured to execute the numerical value change display method described in fig. 1 to 7, and as shown in fig. 8, the apparatus includes: the digital display device comprises a numerical digit determining module 801, a display digit adjusting module 802 and a display digit adjusting module 803, wherein the numerical digit determining module 801, the display digit adjusting module 802 and the display digit adjusting module 803 are sequentially connected.
In a specific embodiment, the numerical value digit determining module 801 is configured to determine a digit of an original numerical value currently displayed in a container node used for displaying a numerical value and a digit of a target numerical value to be displayed;
a display digit adjusting module 802, configured to adjust the number of child nodes in the container node according to the number of digits of the original value and the number of digits of the target value if the number of digits of the original value is not equal to the number of digits of the target value, where each child node is used to display one digit; and the number of the first and second groups,
and a display number adjusting module 803, configured to sequentially adjust the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
In the embodiment of the application, based on the digit relation between the target numerical value and the original numerical value, the number of the child nodes in the container node for displaying the numerical value is increased and decreased in real time, and the numerical value head end does not need to supplement a plurality of zeros aiming at the condition that the digit changes, so that the digit of the numerical value does not need to be fixed in advance, the experience of the change of the digit more intuitively is achieved, and meanwhile, the digital change experience of the display of each digit more intuitively is achieved by independently and dynamically adjusting the number corresponding to each digit in the numerical value.
Optionally, the display digit adjustment module 802 is specifically configured to:
if the number of bits of the original numerical value is smaller than the number of bits of the target numerical value, in the container node, aiming at the number of bits which exist in each target numerical value and do not exist in the original numerical value, respectively creating corresponding sub-nodes for displaying the number of bits.
Optionally, the display digit adjustment module 802 is specifically configured to:
if the number of bits of the original numerical value is greater than the number of bits of the target numerical value, deleting the corresponding child node showing the number of bits in the container node aiming at the number of bits which do not exist in each target numerical value and exist in the original numerical value.
Optionally, the apparatus further comprises:
the first digit moving module is used for determining a first moving direction according to the digit number of the original numerical value and the digit number of the target numerical value before corresponding sub-nodes for displaying digits are respectively established; and moving the corresponding sub-node showing the digits according to the first moving direction aiming at the digits existing in the original numerical value.
Optionally, the apparatus further comprises:
the second digit moving module is used for determining a second moving direction according to the digit number of the original numerical value and the digit number of the target numerical value after deleting the corresponding sub-node for displaying the digits;
and moving the corresponding sub-node showing the digits according to the second moving direction aiming at the digits existing in the target numerical value.
Optionally, the number of bits of the original value is less than the number of bits of the target value; the display number adjustment module 803 is specifically configured to:
aiming at digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value;
and aiming at digits which do not exist in each original numerical value and exist in the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from preset digits to the digits corresponding to the digits in the target numerical value.
Optionally, the number of bits of the original value is greater than the number of bits of the target value; the display number adjustment module 803 is specifically configured to:
and aiming at the digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value.
Optionally, the apparatus further comprises:
the digit splitting module is used for carrying out digit splitting processing on the original numerical value according to the digit of the original numerical value; and in the container node for showing the numerical values, respectively creating corresponding sub-nodes for showing the numerical digits for the numerical digits existing in each original numerical value.
Optionally, the apparatus further comprises:
the separator adding module is used for determining the position of a separator to be added according to the maximum digit of the original numerical value and the maximum digit of the target numerical value; and creating child nodes for displaying the separators according to the determined positions of the separators to be added in the container nodes for displaying the numerical values.
The numerical value change display device in the embodiment of the application determines the digit of the currently displayed original numerical value and the digit of the target numerical value to be displayed; if the digit of the original numerical value is not equal to the digit of the target numerical value, adjusting the number of child nodes in the container node for displaying the numerical value according to the digit of the original numerical value and the digit of the target numerical value; and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value. Based on the digit relation between the target numerical value and the original numerical value, the number of child nodes in the container node for displaying the numerical value is increased and decreased in real time, and aiming at the condition that the digit changes, the numerical value head end does not need to supplement a plurality of zeros, so that the digit of the numerical value does not need to be fixed in advance, the experience of the change of the digit is more intuitive, and meanwhile, the digital change experience of the display of each digit is more intuitive by independently and dynamically adjusting the corresponding digit in the numerical value.
In another specific embodiment, the numerical value digit determining module 801 is configured to determine the digit of the original numerical value currently displayed by the container node for displaying the numerical value and the digit of the target numerical value to be displayed;
a display digit adjusting module 803, configured to, if the digits of the original numerical values are smaller than the digits of the target numerical values, adjust, for digits existing in each of the original numerical values and existing in the target numerical values, a digit displayed by a child node of a corresponding display digit from a digit corresponding to the digit in the original numerical values to a digit corresponding to the digit in the target numerical values; adjusting the number shown by the newly created child node from a preset number to a number corresponding to the digit in the target numerical value;
a presentation digit adjusting module 802, configured to create, in the container node, corresponding child nodes for presentation digits for digits that exist in each of the target numerical values and do not exist in the original numerical value.
Optionally, the apparatus further comprises:
the first digit moving module is used for determining a first moving direction according to the digit number of the original numerical value and the digit number of the target numerical value before corresponding sub-nodes for displaying digits are respectively established; and moving the corresponding sub-node showing the digits according to the first moving direction aiming at the digits existing in the original numerical value.
Optionally, the apparatus further comprises:
the digit splitting module is used for carrying out digit splitting processing on the original numerical value according to the digit of the original numerical value; and in the container node for showing the numerical values, respectively creating corresponding sub-nodes for showing the numerical digits for the numerical digits existing in each original numerical value.
Optionally, the apparatus further comprises:
the separator adding module is used for determining the position of a separator to be added according to the maximum digit of the original numerical value and the maximum digit of the target numerical value; and creating child nodes for displaying the separators according to the determined positions of the separators to be added in the container nodes for displaying the numerical values.
The numerical value change display device in the embodiment of the application determines the digit of the currently displayed original numerical value and the digit of the target numerical value to be displayed; if the digits of the original numerical values are smaller than the digits of the target numerical values, aiming at the digits existing in each original numerical value and the target numerical values, adjusting the digits displayed by the corresponding sub-nodes displaying the digits from the digits corresponding to the digits in the original numerical values to the digits corresponding to the digits in the target numerical values; in a container node for displaying numerical values, aiming at numerical digits existing in each target numerical value and not existing in the original numerical value, respectively creating corresponding sub-nodes for displaying the numerical digits; and adjusting the number displayed by the newly created child node from a preset number to a number corresponding to the digit in the target numerical value. The number of the child nodes in the container node used for displaying the numerical value is adjusted in real time based on the numerical relation between the target numerical value and the original numerical value, and aiming at the condition that the numerical value changes, the numerical value head end does not need to supplement a plurality of zeros, so that the numerical value does not need to be fixed in advance, the experience of more intuitively changing the numerical value is achieved, and meanwhile, the number corresponding to each numerical value in the numerical value is dynamically adjusted independently, and the experience of more intuitively displaying the numerical value is achieved.
Further, corresponding to the methods shown in fig. 1 to fig. 7, based on the same technical concept, an embodiment of the present application further provides a numerical value change display apparatus, which is configured to perform the numerical value change display method, as shown in fig. 9.
The numerical value change display device may have a large difference due to different configurations or performances, and may include one or more processors 901 and a memory 902, where the memory 902 may store one or more stored applications or data. Memory 902 may be, among other things, transient storage or persistent storage. The application program stored in memory 902 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a logarithmic value change presentation device. Still further, processor 901 may be configured to communicate with memory 902 to execute a series of computer-executable instructions in memory 902 on a variable presentation device. The value change presentation apparatus may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, one or more input-output interfaces 905, one or more keyboards 906, and the like.
In one particular embodiment, a numerical change presentation apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in the numerical change presentation apparatus, and configured for execution by one or more processors the one or more programs include computer-executable instructions for:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of bits of the original numerical value is not equal to the number of bits of the target numerical value, adjusting the number of child nodes in the container node according to the number of bits of the original numerical value and the number of bits of the target numerical value, wherein each child node is used for displaying one number of bits; and the number of the first and second groups,
and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
In the embodiment of the application, based on the digit relation between the target numerical value and the original numerical value, the number of the child nodes in the container node for displaying the numerical value is increased and decreased in real time, and the numerical value head end does not need to supplement a plurality of zeros aiming at the condition that the digit changes, so that the digit of the numerical value does not need to be fixed in advance, the experience of the change of the digit more intuitively is achieved, and meanwhile, the digital change experience of the display of each digit more intuitively is achieved by independently and dynamically adjusting the number corresponding to each digit in the numerical value.
Optionally, when executed, the computer-executable instructions adjust the number of child nodes in the container node according to the number of bits of the original value and the number of bits of the target value, including:
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, in the container node for displaying numerical values, aiming at the digits existing in each target numerical value and not existing in the original numerical value, respectively creating corresponding sub-nodes for displaying the digits.
Optionally, when executed, the computer-executable instructions adjust the number of child nodes in the container node according to the number of bits of the original value and the number of bits of the target value, including:
if the number of bits of the original numerical value is greater than the number of bits of the target numerical value, in the container node for displaying numerical values, deleting corresponding sub-nodes for displaying the number of bits for the number of bits which do not exist in each target numerical value and exist in the original numerical value.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
before corresponding sub-nodes for displaying the digits are respectively created, determining a first moving direction according to the digits of the original numerical value and the target numerical value;
and moving the corresponding sub-node showing the digits according to the first moving direction aiming at the digits existing in the original numerical value.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
after deleting the corresponding sub-node for displaying the digit, determining a second moving direction according to the digit of the original numerical value and the digit of the target numerical value;
and moving the corresponding sub-node showing the digits according to the second moving direction aiming at the digits existing in the target numerical value.
Optionally, the number of bits of the original value is less than the number of bits of the target value when the computer-executable instructions are executed;
sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value, including:
aiming at digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value;
and aiming at digits which do not exist in each original numerical value and exist in the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from preset digits to the digits corresponding to the digits in the target numerical value.
Optionally, the number of bits of the original value is greater than the number of bits of the target value when the computer-executable instructions are executed;
sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value, including:
and aiming at the digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
carrying out digit splitting processing on the original numerical value according to the digit of the original numerical value;
in the container node for showing the numerical value, aiming at the digit existing in each original numerical value, respectively creating a corresponding child node for showing the digit.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
determining the position of a separator to be added according to the maximum digit of the original numerical value and the maximum digit of the target numerical value;
and in the container node for displaying the numerical value, creating a child node for displaying the separator according to the determined position of the separator to be added.
The numerical value change display device in the embodiment of the application determines the digit of a currently displayed original numerical value and the digit of a target numerical value to be displayed; if the digit of the original numerical value is not equal to the digit of the target numerical value, adjusting the number of child nodes in the container node for displaying the numerical value according to the digit of the original numerical value and the digit of the target numerical value; and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value. It can be seen that, through the numerical value change display device in the embodiment of the application, based on the relationship between the target numerical value and the original numerical value, the number of child nodes in the container node for displaying the numerical value is increased or decreased in real time, and for the situation that the number of digits changes, the number head end does not need to supplement a plurality of zeros, so that the number of digits of the numerical value does not need to be fixed in advance, and the experience of the change of the number of digits is more intuitive, and meanwhile, the digital change display device also dynamically adjusts the number corresponding to each digit in the numerical value independently, and has the experience of the change of the number displayed by each digit more intuitively.
In another particular embodiment, a numerical change presentation apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in the numerical change presentation apparatus, and configured for execution by one or more processors the one or more programs include computer-executable instructions for:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, aiming at the digits existing in each original numerical value and the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from the digits corresponding to the digits in the original numerical value to the digits corresponding to the digits in the target numerical value;
in the container node, respectively creating corresponding sub-nodes showing digits for digits which exist in each target numerical value and do not exist in the original numerical value;
and adjusting the number shown by the newly created child node from a preset number to the number corresponding to the digit in the target numerical value.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
before corresponding sub-nodes for displaying the digits are respectively created, determining a first moving direction according to the digits of the original numerical value and the target numerical value;
and moving the corresponding sub-node showing the digits according to the first moving direction aiming at the digits existing in the original numerical value.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
carrying out digit splitting processing on the original numerical value according to the digit of the original numerical value;
in the container node, for each digit existing in the original numerical value, respectively creating a corresponding child node for showing the digit.
Optionally, the computer executable instructions, when executed, further comprise computer executable instructions for:
determining the position of a separator to be added according to the maximum digit of the original numerical value and the maximum digit of the target numerical value;
and in the container node, creating a child node for displaying the separator according to the determined position of the separator to be added.
The numerical value change display device in the embodiment of the application determines the digit of a currently displayed original numerical value and the digit of a target numerical value to be displayed; if the digits of the original numerical values are smaller than the digits of the target numerical values, aiming at the digits existing in each original numerical value and the target numerical values, adjusting the digits displayed by the corresponding sub-nodes displaying the digits from the digits corresponding to the digits in the original numerical values to the digits corresponding to the digits in the target numerical values; in a container node for displaying numerical values, aiming at numerical digits existing in each target numerical value and not existing in the original numerical value, respectively creating corresponding sub-nodes for displaying the numerical digits; and adjusting the number displayed by the newly created child node from a preset number to a number corresponding to the digit in the target numerical value. It can be seen that, through the numerical value change display device in the embodiment of the application, the number of child nodes in a container node for displaying numerical values is adjusted in real time based on the numerical relation between a target numerical value and an original numerical value, and for the condition that the numerical value changes, the numerical value head end does not need to supplement a plurality of zeros, so that the numerical value of the numerical value does not need to be fixed in advance, and the digital change experience is more intuitively realized.
Further, corresponding to the methods shown in fig. 1 to fig. 7, based on the same technical concept, embodiments of the present application further provide a storage medium for storing computer-executable instructions, where in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, and the like, and when being executed by a processor, the storage medium stores computer-executable instructions capable of implementing the following processes:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of bits of the original numerical value is not equal to the number of bits of the target numerical value, adjusting the number of child nodes in the container node according to the number of bits of the original numerical value and the number of bits of the target numerical value, wherein each child node is used for displaying one number of bits; and the number of the first and second groups,
and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
In the embodiment of the application, based on the digit relation between the target numerical value and the original numerical value, the number of the child nodes in the container node for displaying the numerical value is increased and decreased in real time, and the numerical value head end does not need to supplement a plurality of zeros aiming at the condition that the digit changes, so that the digit of the numerical value does not need to be fixed in advance, the experience of the change of the digit more intuitively is achieved, and meanwhile, the digital change experience of the display of each digit more intuitively is achieved by independently and dynamically adjusting the number corresponding to each digit in the numerical value.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, adjust the number of child nodes in the container node according to the number of bits of the original value and the number of bits of the target value, including:
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, in the container node for displaying numerical values, aiming at the digits existing in each target numerical value and not existing in the original numerical value, respectively creating corresponding sub-nodes for displaying the digits.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, adjust the number of child nodes in the container node according to the number of bits of the original value and the number of bits of the target value, including:
if the number of bits of the original numerical value is greater than the number of bits of the target numerical value, in the container node for displaying numerical values, deleting corresponding sub-nodes for displaying the number of bits for the number of bits which do not exist in each target numerical value and exist in the original numerical value.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
before corresponding sub-nodes for displaying the digits are respectively created, determining a first moving direction according to the digits of the original numerical value and the target numerical value;
and moving the corresponding sub-node showing the digits according to the first moving direction aiming at the digits existing in the original numerical value.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
after deleting the corresponding sub-node for displaying the digit, determining a second moving direction according to the digit of the original numerical value and the digit of the target numerical value;
and moving the corresponding sub-node showing the digits according to the second moving direction aiming at the digits existing in the target numerical value.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the number of bits of the original value to be less than the number of bits of the target value;
sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value, including:
aiming at digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value;
and aiming at digits which do not exist in each original numerical value and exist in the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from preset digits to the digits corresponding to the digits in the target numerical value.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, cause the number of bits of the original value to be greater than the number of bits of the target value;
sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value, including:
and aiming at the digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
carrying out digit splitting processing on the original numerical value according to the digit of the original numerical value;
in the container node, for each digit existing in the original numerical value, respectively creating a corresponding child node for showing the digit.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
determining the position of a separator to be added according to the maximum digit of the original numerical value and the maximum digit of the target numerical value;
and in the container node for displaying the numerical value, creating a child node for displaying the separator according to the determined position of the separator to be added.
When executed by a processor, the computer-executable instructions stored in the storage medium in the embodiment of the application determine the number of bits of the currently displayed original numerical value and the number of bits of the target numerical value to be displayed; if the digit of the original numerical value is not equal to the digit of the target numerical value, adjusting the number of child nodes in the container node for displaying the numerical value according to the digit of the original numerical value and the digit of the target numerical value; and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value. It can be seen that, through the storage medium in the embodiment of the present application, based on the bit number relationship between the target value and the original value, the number of child nodes in the container node for displaying the value is increased or decreased in real time, and for the case that the bit number changes, the number head end does not need to supplement a plurality of zeros, so that the bit number of the value does not need to be fixed in advance, and the experience of bit number change more intuitively is provided, and meanwhile, the number corresponding to each bit in the value is dynamically adjusted independently, and the experience of digital change of each displayed bit more intuitively is provided.
In another specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and the storage medium stores computer executable instructions that, when executed by the processor, implement the following process:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, aiming at the digits existing in each original numerical value and the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from the digits corresponding to the digits in the original numerical value to the digits corresponding to the digits in the target numerical value;
in the container node, respectively creating corresponding sub-nodes showing digits for digits which exist in each target numerical value and do not exist in the original numerical value;
and adjusting the number shown by the newly created child node from a preset number to the number corresponding to the digit in the target numerical value.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
before corresponding sub-nodes for displaying the digits are respectively created, determining a first moving direction according to the digits of the original numerical value and the target numerical value;
and moving the corresponding sub-node showing the digits according to the first moving direction aiming at the digits existing in the original numerical value.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
carrying out digit splitting processing on the original numerical value according to the digit of the original numerical value;
in the container node, for each digit existing in the original numerical value, respectively creating a corresponding child node for showing the digit.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further implement the following process:
determining the position of a separator to be added according to the maximum digit of the original numerical value and the maximum digit of the target numerical value;
and in the container node, creating a child node for displaying the separator according to the determined position of the separator to be added.
When executed by a processor, the computer-executable instructions stored in the storage medium in the embodiment of the application determine the number of bits of the currently displayed original numerical value and the number of bits of the target numerical value to be displayed; if the digits of the original numerical values are smaller than the digits of the target numerical values, aiming at the digits existing in each original numerical value and the target numerical values, adjusting the digits displayed by the corresponding sub-nodes displaying the digits from the digits corresponding to the digits in the original numerical values to the digits corresponding to the digits in the target numerical values; in a container node for displaying numerical values, aiming at numerical digits existing in each target numerical value and not existing in the original numerical value, respectively creating corresponding sub-nodes for displaying the numerical digits; and adjusting the number displayed by the newly created child node from a preset number to a number corresponding to the digit in the target numerical value. It can be seen that the number of child nodes in a container node for displaying the numerical value is adjusted in real time based on the numerical relationship between the target numerical value and the original numerical value, and the numerical value head end does not need to supplement a plurality of zeros aiming at the condition that the numerical value changes, so that the numerical value head end does not need to fix the numerical value in advance, the experience of the numerical value change is more intuitive, and meanwhile, the digital change experience of the display of each numerical value is more intuitive by independently and dynamically adjusting the number corresponding to each numerical value.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (17)

1. A numerical value change display method is characterized by comprising the following steps:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of bits of the original numerical value is not equal to the number of bits of the target numerical value, adjusting the number of child nodes in the container node according to the number of bits of the original numerical value and the number of bits of the target numerical value, wherein each child node is used for displaying one number of bits; and the number of the first and second groups,
and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
2. The method of claim 1, wherein the adjusting the number of child nodes in the container node according to the number of bits of the original value and the number of bits of the target value comprises:
if the number of bits of the original numerical value is smaller than the number of bits of the target numerical value, in the container node, aiming at the number of bits which exist in each target numerical value and do not exist in the original numerical value, respectively creating corresponding sub-nodes for displaying the number of bits.
3. The method of claim 1, wherein the adjusting the number of child nodes in the container node according to the number of bits of the original value and the number of bits of the target value comprises:
if the number of bits of the original numerical value is greater than the number of bits of the target numerical value, deleting, in the container node, a corresponding child node showing the number of bits for each number of bits that does not exist in the target numerical value and exists in the original numerical value.
4. The method of claim 2, further comprising, prior to creating the corresponding child nodes for the exposition digit respectively:
determining a first moving direction according to the number of digits of the original numerical value and the number of digits of the target numerical value;
and moving the corresponding sub-node showing the digits according to the first moving direction aiming at the digits existing in the original numerical value.
5. The method of claim 3, further comprising, after deleting the corresponding child node exhibiting the digit:
determining a second moving direction according to the number of digits of the original numerical value and the number of digits of the target numerical value;
and moving the corresponding sub-node showing the digits according to the second moving direction aiming at the digits existing in the target numerical value.
6. The method of claim 1, wherein the original value has a number of bits less than the target value;
sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value, including:
aiming at digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value;
and aiming at digits which do not exist in each original numerical value and exist in the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from preset digits to the digits corresponding to the digits in the target numerical value.
7. The method of claim 1, wherein the original value has a greater number of bits than the target value;
sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value, including:
and aiming at the digits existing in each original numerical value and the target numerical value, adjusting the number shown by the corresponding child node showing the digits from the number corresponding to the digit in the original numerical value to the number corresponding to the digit in the target numerical value.
8. The method of any one of claims 1 to 7, further comprising:
determining the position of a separator to be added according to the maximum digit of the original numerical value and the maximum digit of the target numerical value;
and in the container node, creating a child node for displaying the separator according to the determined position of the separator to be added.
9. A numerical value change display method is characterized by comprising the following steps:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, aiming at the digits existing in each original numerical value and the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from the digits corresponding to the digits in the original numerical value to the digits corresponding to the digits in the target numerical value;
in the container node, respectively creating corresponding sub-nodes showing digits for digits which exist in each target numerical value and do not exist in the original numerical value;
and adjusting the number shown by the newly created child node from a preset number to the number corresponding to the digit in the target numerical value.
10. The method of claim 9, further comprising, prior to creating the corresponding child nodes for the exposition digit respectively:
determining a first moving direction according to the number of digits of the original numerical value and the number of digits of the target numerical value;
and moving the corresponding sub-node showing the digits according to the first moving direction aiming at the digits existing in the original numerical value.
11. The method of claim 9, further comprising:
determining the position of a separator to be added according to the maximum digit of the original numerical value and the maximum digit of the target numerical value;
and in the container node, creating a child node for displaying the separator according to the determined position of the separator to be added.
12. A numerical value change display device, comprising:
the numerical value digit determining module is used for determining the digits of the currently displayed original numerical value and the digits of the target numerical value to be displayed in the container node for displaying the numerical value;
a display digit adjusting module, configured to adjust the number of child nodes in the container node according to the number of digits of the original value and the number of digits of the target value if the number of digits of the original value is not equal to the number of digits of the target value, where each child node is configured to display one digit; and the number of the first and second groups,
and the display number adjusting module is used for sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
13. A numerical value change display device, comprising:
the numerical value digit determining module is used for determining the digits of the currently displayed original numerical value and the digits of the target numerical value to be displayed in the container node for displaying the numerical value;
a display digit adjusting module, configured to, if the digits of the original numerical values are smaller than the digits of the target numerical values, adjust, for digits existing in each of the original numerical values and existing in the target numerical values, a digit displayed by a child node of a corresponding display digit from a digit corresponding to the digit in the original numerical values to a digit corresponding to the digit in the target numerical values; adjusting the number shown by the newly created child node from a preset number to a number corresponding to the digit in the target numerical value;
and the display digit adjusting module is used for respectively creating corresponding sub-nodes for displaying digits aiming at digits which exist in each target numerical value and do not exist in the original numerical value in the container node.
14. A numerical change presentation apparatus, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of bits of the original numerical value is not equal to the number of bits of the target numerical value, adjusting the number of child nodes in the container node according to the number of bits of the original numerical value and the number of bits of the target numerical value, wherein each child node is used for displaying one number of bits; and the number of the first and second groups,
and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
15. A numerical change presentation apparatus, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, aiming at the digits existing in each original numerical value and the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from the digits corresponding to the digits in the original numerical value to the digits corresponding to the digits in the target numerical value;
in the container node, respectively creating corresponding sub-nodes showing digits for digits which exist in each target numerical value and do not exist in the original numerical value;
and adjusting the number shown by the newly created child node from a preset number to the number corresponding to the digit in the target numerical value.
16. A storage medium storing computer-executable instructions, wherein the executable instructions when executed implement the following:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of bits of the original numerical value is not equal to the number of bits of the target numerical value, adjusting the number of child nodes in the container node according to the number of bits of the original numerical value and the number of bits of the target numerical value, wherein each child node is used for displaying one number of bits; and the number of the first and second groups,
and sequentially adjusting the numbers displayed by the child nodes according to the numbers corresponding to the digits of the original numerical value and the digits corresponding to the digits of the target numerical value.
17. A storage medium storing computer-executable instructions, wherein the executable instructions when executed implement the following:
determining the digit of an original numerical value currently displayed in a container node for displaying the numerical value and the digit of a target numerical value to be displayed;
if the number of digits of the original numerical value is smaller than the number of digits of the target numerical value, aiming at the digits existing in each original numerical value and the target numerical value, adjusting the digits displayed by the corresponding child nodes displaying the digits from the digits corresponding to the digits in the original numerical value to the digits corresponding to the digits in the target numerical value;
in the container node, respectively creating corresponding sub-nodes showing digits for digits which exist in each target numerical value and do not exist in the original numerical value;
and adjusting the number shown by the newly created child node from a preset number to the number corresponding to the digit in the target numerical value.
CN201810178218.4A 2018-03-05 2018-03-05 Numerical value change display method and device Active CN108563412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810178218.4A CN108563412B (en) 2018-03-05 2018-03-05 Numerical value change display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810178218.4A CN108563412B (en) 2018-03-05 2018-03-05 Numerical value change display method and device

Publications (2)

Publication Number Publication Date
CN108563412A CN108563412A (en) 2018-09-21
CN108563412B true CN108563412B (en) 2021-08-27

Family

ID=63531479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810178218.4A Active CN108563412B (en) 2018-03-05 2018-03-05 Numerical value change display method and device

Country Status (1)

Country Link
CN (1) CN108563412B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932222B (en) * 2019-04-24 2025-02-21 阿里巴巴集团控股有限公司 Network resource processing and network red envelope distribution method, device and storage medium
CN112785516A (en) * 2021-01-05 2021-05-11 大陆汽车车身电子系统(芜湖)有限公司 Numerical value display method and vehicle speed display method based on digital pictures

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809838A (en) * 2012-11-14 2014-05-21 深圳市金蝶友商电子商务服务有限公司 Numerical value input process method, system thereof and simulation voucher data input process method
CN104185051A (en) * 2014-08-06 2014-12-03 深圳市佳创视讯技术股份有限公司 Method for switching live channel by use of direction keys
CN104349000A (en) * 2013-07-31 2015-02-11 京瓷办公信息系统株式会社 Numerical value inputting device and electronic equipment
CN105912311A (en) * 2015-12-11 2016-08-31 乐视移动智能信息技术(北京)有限公司 Method and device for intuitively prompting payment amount

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809838A (en) * 2012-11-14 2014-05-21 深圳市金蝶友商电子商务服务有限公司 Numerical value input process method, system thereof and simulation voucher data input process method
CN104349000A (en) * 2013-07-31 2015-02-11 京瓷办公信息系统株式会社 Numerical value inputting device and electronic equipment
CN104185051A (en) * 2014-08-06 2014-12-03 深圳市佳创视讯技术股份有限公司 Method for switching live channel by use of direction keys
CN105912311A (en) * 2015-12-11 2016-08-31 乐视移动智能信息技术(北京)有限公司 Method and device for intuitively prompting payment amount

Also Published As

Publication number Publication date
CN108563412A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN108845936B (en) AB testing method and system based on massive users
CN107957831B (en) Data processing method, device and processing equipment for displaying interface content
US9766778B2 (en) Method and apparatus for rapid access to a contact in a contact list
EP3191941B1 (en) Parametric inertia and apis
CN105335389B (en) A kind of business method for visualizing and system
CN112036236A (en) GhostNet-based detection model training method, device and medium
CN110851058A (en) Page virtual scrolling method, device and equipment
CN105786417B (en) A kind of dynamic display method of static images, device and equipment
CN108563412B (en) Numerical value change display method and device
US20180365198A1 (en) Method and apparatus for providing web browsing interface
CN111158650A (en) Report template, report template and report generation method and device
CN104657050A (en) Data operating apparatus and method
CN113360154B (en) Page construction method, device, equipment and readable medium
CN112528614B (en) Table editing method and device and electronic equipment
CN107390995B (en) Ladder numerical value setting method and device
US20160342306A1 (en) Electronic device and method for changing application icon
US11243649B2 (en) Method and apparatus for providing web browsing interface including dividing the content display region into at least two spaces, and allowing selection of different modes for loading web pages ot the at elast two spaces
CN111061978A (en) Page skipping method and device
CN115981617A (en) Code sentence recommendation method and device, electronic equipment and storage medium
CN111177609B (en) Processing method and device for displaying three-dimensional data table in page and electronic equipment
CN109165065B (en) Method, device and equipment for processing word list
CN112015702A (en) Message file name processing method, device and equipment
CN107783761B (en) Interface construction method, device and equipment
CN107645541B (en) Data storage method and device and server
CN107015792B (en) Method and equipment for realizing chart unified animation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant