Numerical processing method, device, electronic device and storage medium

By compressing and mapping the game values and processing jump coefficients, the problems of accuracy and gap perception in the game are solved in the game by super large values, improving the game experience.

CN114159801BActive Publication Date: 2025-08-08DOUYIN VISION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111493794.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2025-08-08
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

Existing game numerical processing algorithms have problems of reduced accuracy and difficult to widen the numerical gap when processing super large numerical values. Especially when the numerical growth explosive behavior is explosive at different game stages, it is difficult to maintain the accuracy and gap perception of numerical values.

Method used

By dividing the value to be processed into numerical blocks, the target numerical block is determined for compression mapping, and the jump coefficient is assigned to other numerical blocks. The value to be displayed is determined in combination with the compressed value and the jump coefficient, and the function of monotonous increment and decrease in the increment rate is processed.

Benefits of technology

It has achieved the purpose of widening the numerical gap in the game rankings, maintaining numerical accuracy, making it easier for players to understand and perceive, and improving the game experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114159801B_ABST
    Figure CN114159801B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a numerical processing method, apparatus, electronic device, and storage medium, which can perform compression measurement processing on extremely large numerical values in games. Through steps such as compression mapping and jump coefficients, the processing effect of extremely large numerical values is improved, and the effect of dedimensionalizing and compressing multi-digit data is achieved, so that the mapping result is presented with a relatively small number of significant digits, and a function result with a step characteristic is obtained at the same time. This can widen the numerical gap in the game ranking and retain the accuracy of the numerical value, which is convenient for players to perceive and understand, and is conducive to improving the player's gaming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of numerical processing technology, and in particular to a numerical processing method, device, electronic device, and storage medium. Background Art

[0002] With the development of science and technology, games are becoming more and more popular. In recent years, numerical games have become increasingly popular due to their gameplay features that allow players to stack extremely large numbers through game mechanics, creating exaggerated scores to bring players a sense of pleasure. At present, most numerical games often use a large number operation algorithm and a custom dimensional method to process extremely large numbers. The specific implementation method of the large number operation algorithm is to save the number itself as an array and perform four arithmetic operations on the large numbers by simulating manual calculations on each digit. The specific implementation method of the custom dimensional method is to customize a series of large number units for the game, and only display the significant digits that meet the large number units when displaying the values.

[0003] Although existing game numerical processing algorithms use custom large number units, this display format is unconventional and cannot represent values with less than one dimension, resulting in reduced numerical accuracy. Furthermore, game numerical values can experience explosive growth at different stages of the game, making it difficult to maintain numerical differences between different stages. Summary of the Invention

[0004] The embodiments of the present disclosure at least provide a numerical processing method, apparatus, electronic device, and storage medium.

[0005] The present disclosure provides a numerical processing method, the method comprising:

[0006] For a value to be processed, dividing the value to be processed into at least one value block according to a preset number of bits;

[0007] determining a target numerical block in the at least one numerical block, wherein the target numerical block is the numerical block including the highest digit in the numerical value to be processed;

[0008] Performing compression mapping processing on the target value block to obtain a compressed value;

[0009] For each other numerical block except the target numerical block in the at least one numerical block, determining a jump coefficient of the other numerical block at a corresponding digit;

[0010] A value to be displayed of the value to be processed is determined based on the compressed value and at least one of the jump factors.

[0011] In an optional implementation manner, the to-be-processed value is divided into at least one value block according to a preset number of bits, including:

[0012] Determining a preset number of digits for dividing the value to be processed based on the number of counting digits of the value, wherein the preset number of digits includes at least one digit;

[0013] For the value to be processed, the value to be processed is divided into at least one value block according to the preset number of bits in a division order from low digits to high digits.

[0014] In an optional implementation manner, performing compression mapping processing on the target value block to obtain a compressed value includes:

[0015] Obtaining a compression mapping function for the value to be processed and the target value block in the value to be processed, wherein the compression mapping function is a monotonically increasing function with a continuously decreasing increasing rate;

[0016] The target value block is calculated using the compression mapping function to obtain a compressed value after compression mapping.

[0017] In an optional embodiment, determining, for each other numerical block in the at least one numerical block except the target numerical block, a jump coefficient of the other numerical block at a corresponding digit includes:

[0018] determining a maximum value within the range of the at least one digit;

[0019] Calculating the maximum value using the compression mapping function to obtain a calculated value;

[0020] An integer greater than or equal to the calculated value and having a difference of less than 1 from the calculated value is used as a critical value under the preset number of bits;

[0021] For each other numerical block in the at least one numerical block except the target numerical block, based on the index of the other numerical block at the corresponding digit pre-marked for the other numerical block and the critical value, the jump coefficient of the other numerical block for the to-be-processed numerical value is determined.

[0022] In an optional embodiment, after using an integer that is greater than or equal to the calculated value and whose difference from the calculated value is less than 1 as a critical value at the preset number of bits, the method includes:

[0023] The critical value is used as a jump coefficient of the other value blocks for the value to be processed.

[0024] In an optional embodiment, before determining, for each other numerical block in at least one numerical block except the target numerical block, a jump coefficient for the to-be-processed numerical value at a corresponding digit of the other numerical block, the method includes:

[0025] For the at least one numerical block, based on at least one digit of each numerical block in the value to be processed, an index is added to each numerical block in a calibration order from low digit to high digit, wherein the higher the digit of the numerical block, the larger the corresponding index.

[0026] In an optional embodiment, when the value to be processed is a value in a game, before determining the value to be displayed of the value to be processed based on the compressed value and at least one of the jump coefficients, the method further includes:

[0027] Determining a level-crossing cumulative coefficient for the current game process according to the current game process;

[0028] The determining, based on the compressed value and at least one of the jump coefficients, a value to be displayed of the value to be processed includes:

[0029] A to-be-displayed value of the to-be-processed value is determined based on the compressed value, at least one of the jump coefficients, and the cross-step accumulation coefficient.

[0030] In an optional implementation, after determining the to-be-displayed value of the to-be-processed value based on the compressed value and at least one of the jump coefficients, the method includes:

[0031] Determine the information display item corresponding to the value to be processed;

[0032] The information display item is replaced by the value to be displayed, and the value to be displayed is displayed through the terminal.

[0033] The present disclosure also provides a numerical processing device, comprising:

[0034] A data acquisition module, configured to divide the value to be processed into at least one value block according to a preset number of bits;

[0035] a data determination module, configured to determine a target numerical block in the at least one numerical block, wherein the target numerical block is the numerical block including the highest digit in the numerical value to be processed;

[0036] A compression mapping module, configured to perform compression mapping processing on the target value block to obtain a compressed value;

[0037] a jump coefficient module, configured to determine, for each other numerical block except the target numerical block in the at least one numerical block, a jump coefficient of the other numerical block at a corresponding digit;

[0038] The data processing module is configured to determine a value to be displayed of the value to be processed based on the compressed value and at least one of the jump coefficients.

[0039] In an optional implementation, the data acquisition module is specifically configured to:

[0040] Determining a preset number of digits for dividing the value to be processed based on the number of counting digits of the value, wherein the preset number of digits includes at least one digit;

[0041] For the value to be processed, the value to be processed is divided into at least one value block according to the preset number of bits in a division order from low digits to high digits.

[0042] In an optional implementation, the compression mapping module is specifically configured to:

[0043] Obtaining a compression mapping function for the value to be processed and the target value block in the value to be processed, wherein the compression mapping function is a monotonically increasing function with a continuously decreasing increasing rate;

[0044] The target value block is calculated using the compression mapping function to obtain a compressed value after compression mapping.

[0045] In an optional implementation manner, the jump coefficient module is specifically configured to:

[0046] determining a maximum value within the range of the at least one digit;

[0047] Calculating the maximum value using the compression mapping function to obtain a calculated value;

[0048] An integer greater than or equal to the calculated value and having a difference of less than 1 from the calculated value is used as a critical value under the preset number of bits;

[0049] For each other numerical block in the at least one numerical block except the target numerical block, based on the index of the other numerical block at the corresponding digit pre-marked for the other numerical block and the critical value, the jump coefficient of the other numerical block for the to-be-processed numerical value is determined.

[0050] In an optional embodiment, after the jump coefficient module is configured to use an integer that is greater than or equal to the calculated value and has a difference of less than 1 from the calculated value as the critical value at the preset number of bits, the jump coefficient module is specifically configured to:

[0051] The critical value is used as a jump coefficient of the other value blocks for the value to be processed.

[0052] In an optional embodiment, before determining the jump coefficient of each other numerical block except the target numerical block in the at least one numerical block at a corresponding digit of the other numerical block, the jump coefficient module is specifically configured to:

[0053] For the at least one numerical block, based on at least one digit of each numerical block in the value to be processed, an index is added to each numerical block in a calibration order from low digit to high digit, wherein the higher the digit of the numerical block, the larger the corresponding index.

[0054] In an optional embodiment, the device further includes a cumulative coefficient module, wherein the cumulative coefficient module is configured to:

[0055] Determining a level-crossing cumulative coefficient for the current game process according to the current game process;

[0056] The determining, based on the compressed value and at least one of the jump coefficients, a value to be displayed of the value to be processed includes:

[0057] A to-be-displayed value of the to-be-processed value is determined based on the compressed value, at least one of the jump coefficients, and the cross-step accumulation coefficient.

[0058] In an optional embodiment, the device further includes a data display module, wherein the data display module is configured to:

[0059] Determine the information display item corresponding to the value to be processed;

[0060] The information display item is replaced by the value to be displayed, and the value to be displayed is displayed through the terminal.

[0061] An embodiment of the present disclosure also provides an electronic device, comprising: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned numerical processing method are performed.

[0062] An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned numerical processing method are executed.

[0063] The numerical processing method, apparatus, electronic device, and storage medium provided by the embodiments of the present disclosure can, for a numerical value to be processed, divide the numerical value to be processed into at least one numerical block according to a preset number of bits, determine a target numerical block in the at least one numerical block, wherein the target numerical block is the numerical block including the highest digit in the numerical value to be processed, perform compression mapping processing on the target numerical block to obtain a compressed numerical value, determine a jump coefficient of each numerical block other than the target numerical block in the at least one numerical block at the corresponding digit, and determine a numerical value to be displayed for the numerical value to be processed based on the compressed value and at least one of the jump coefficients.

[0064] In this way, compression measurement processing is performed on the numerical values in the game, and the processing effect of extremely large numerical values is improved through steps such as compression mapping and jump coefficients, so as to achieve the effect of dedimensionalizing and compressing multi-digit data, so that the mapping results are presented with a smaller number of significant digits, and at the same time, a function result with a step characteristic is obtained, which can widen the numerical gap in the game ranking and retain the accuracy of the numerical values, making it easier for players to perceive and understand, and helping to improve the player's gaming experience.

[0065] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without inventive effort.

[0067] Figure 1 A flowchart of a numerical processing method provided by an embodiment of the present disclosure is shown;

[0068] Figure 2 A flowchart showing a specific method for determining a jump coefficient in the numerical processing method provided by an embodiment of the present disclosure is shown;

[0069] Figure 3 A flowchart of another numerical processing method provided by an embodiment of the present disclosure is shown;

[0070] Figure 4 One of the schematic diagrams of a numerical processing device provided by an embodiment of the present disclosure is shown;

[0071] Figure 5 A second schematic diagram of a numerical processing device provided by an embodiment of the present disclosure is shown;

[0072] Figure 6 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the disclosure for which protection is sought, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure.

[0074] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.

[0075] The term "and / or" herein simply describes an association relationship, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, and the existence of B alone. In addition, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.

[0076] Research has found that most numerical games currently use a combination of large number operations and custom dimensionality methods to handle extremely large values. While existing algorithms for processing extremely large values utilize custom large number units, this presentation format is unconventional and fails to capture values that fall short of a single dimension, resulting in reduced accuracy. Furthermore, game values can experience explosive growth at different stages, making it difficult to maintain consistent numerical differences between them.

[0077] Based on the above research, the present disclosure provides a numerical processing method that can perform compression measurement processing on extremely large numerical values in the game. Through steps such as compression mapping and jump coefficient, the processing effect of extremely large numerical values is improved, and the effect of dedimensionalizing and compressing multi-digit data is achieved, so that the mapping result is presented with a smaller number of significant digits, and at the same time, a function result with a step characteristic is obtained, which can widen the numerical gap in the game ranking and retain the accuracy of the numerical value, which is convenient for players to perceive and understand, and is conducive to improving the player's gaming experience.

[0078] To facilitate understanding of this embodiment, we first provide a detailed introduction to a numerical processing method disclosed in this embodiment. The numerical processing method provided in this embodiment is generally executed by an electronic device with certain computing capabilities, such as a terminal device, a server, or other processing device. In some possible implementations, this numerical processing method can be implemented by a processor invoking computer-readable instructions stored in a memory.

[0079] See also Figure 1 , Figure 1 This is a flow chart of a numerical processing method provided by an embodiment of the present disclosure. Figure 1 As shown in , the numerical processing method provided by the embodiment of the present disclosure includes:

[0080] S101: Divide a value to be processed into at least one value block according to a preset number of bits.

[0081] In this step, when it is necessary to process the value to be processed, the value to be processed needs to be divided. Therefore, the bit division can be performed according to the preset bit number to obtain at least one value block corresponding to the value to be processed, and then subsequent data processing can be performed through the at least one value block corresponding to the value to be processed.

[0082] For example, for an N-bit value to be processed, if M-bits of valid bits are required as the preset number of bits, then the first bit division is from the 1st bit to the Mth bit, the second bit division is from the M+1th bit to the 2Mth bit, and so on, until the last bit division.

[0083] The numerical value block is composed of consecutive digits in the numerical value to be processed.

[0084] The pending value may be a pending value for the user's current game process, or may be original data of the player's current game process obtained from the game backend.

[0085] Exemplarily, the value to be processed is the player's current wealth value or health value, etc.

[0086] At present, most numerical games tend to use a large number operation method and a custom dimension method to process large numerical values. Although custom large number units are used for large numerical values, this form of presentation is unconventional, and the numerical value cannot be reflected when it is less than one dimension, which will lead to a decrease in the accuracy of the numerical value. In addition, for different stages of the game, the game values will experience explosive growth, but it is not easy to widen the numerical gap at different stages. Therefore, in the implementation of the present disclosure, it is necessary to process large numerical values so that the processing results are presented with a smaller number of significant digits, which can widen the numerical gap in the game rankings and retain the accuracy of the numerical values, making it easier for players to perceive and understand, and helping to improve the player's gaming experience.

[0087] Specifically, for the value to be processed, the value to be processed is divided into at least one value block according to the preset number of bits. The preset number of bits for dividing the value to be processed can be determined based on the number of counting bits of the value, wherein the preset number of bits includes at least one digit.

[0088] Then, for the value to be processed, the value to be processed is divided into at least one value block according to the preset number of bits in a division order from low digits to high digits.

[0089] In this step, when it is necessary to obtain at least one numerical block corresponding to the numerical value to be processed, the numerical value to be processed can be divided. Therefore, the preset number of bits for dividing the numerical value to be processed can be obtained based on the counting digits of the numerical value. Moreover, for the numerical value to be processed, the division order can be from low digits to high digits, and then the numerical value to be processed can be divided into at least one numerical block according to the preset number of bits, so that subsequent calculations can be performed based on the at least one numerical block.

[0090] In a possible real-time manner, after dividing the value to be processed into at least one value block, the method further includes:

[0091] For the at least one numerical block, based on at least one digit of each numerical block in the value to be processed, an index is added to each numerical block in a calibration order from low digit to high digit, wherein the higher the digit of the numerical block, the larger the corresponding index.

[0092] Exemplarily, the method of adding the index includes one or more of the following methods:

[0093] The lowest digit is indexed as 0, the higher digit is indexed as 1, and so on, and the index is directly applied to the subsequent calculations;

[0094] The lowest digit of the numerical block is indexed as 1, and the higher digit is indexed by 1, and so on. When the index is subsequently applied to perform calculations, each index needs to be subtracted by 1.

[0095] S102: Determine a target numerical block in the at least one numerical block, wherein the target numerical block is the numerical block including the highest digit in the numerical value to be processed.

[0096] In this step, in order to facilitate subsequent calculations, when the value to be processed is divided into at least one value block, the value block with the highest digit in the value to be processed can be determined, and then the target value block can be determined in the at least one value block.

[0097] It can be understood that the number of bits in the target value block in the value to be processed is less than or equal to the preset number of bits.

[0098] S103: Perform compression mapping processing on the target value block to obtain a compressed value.

[0099] In this step, in order to maintain a smaller numerical output when a larger numerical input is input, and to depict the diminishing marginal utility of the psychological boost to the player during the growth of the game numerical value, for example, before the order of magnitude of wealth changes, the more you earn, the smoother the rise, the target numerical block can be determined from the at least one numerical block, and then compression mapping processing can be performed on the target numerical block to obtain a compressed numerical value.

[0100] Specifically, for performing compression mapping processing on the target numerical block to obtain a compressed numerical value, a compression mapping function for the numerical value to be processed and a target numerical block in the numerical value to be processed can be obtained first, and then the compression mapping function is used to calculate the target numerical block to obtain the compressed numerical value after compression mapping.

[0101] In this step, when it is necessary to obtain the compressed value after compression mapping, it is necessary to use the compression mapping function for calculation. Therefore, the compression mapping function for the value to be processed can be obtained, and the target value block in the value to be processed can be obtained. Then, the compression mapping function can be used to calculate the target value block, so that the compressed value after compression mapping can be obtained.

[0102] The compression mapping function is a monotonically increasing function with a continuously decreasing increasing rate.

[0103] Accordingly, in a specific implementation process, the target value block can be compressed and calculated using the following compression mapping function:

[0104] ln(x+1);

[0105] Wherein, x is the target value block.

[0106] S104: For each other numerical block in the at least one numerical block except the target numerical block, determine a jump coefficient of the other numerical block at a corresponding digit.

[0107] In this step, when it is necessary to present the low-digit numerical block, the numerical difference between the high-digit numerical block and the low-digit numerical block needs to be widened, thereby amplifying the high-digit numerical block. In addition, in order to fully reflect the data situation of the value to be processed, the value to be processed can be compensated for the numerical jump, so calculations can be performed on other numerical blocks in the value to be processed as a jump coefficient to compensate for the target numerical block.

[0108] The jump coefficient is a value calculated by the other numerical blocks for their corresponding digits. Furthermore, the jump coefficient of each other numerical block at the corresponding digit is the jump coefficient of each other numerical block for the value to be processed.

[0109] Among them, the jump coefficients of the other numerical blocks at corresponding digits can be the same, that is, the jump coefficients of each other numerical block for the numerical value to be processed are the same, or they can be different. For example, in order to increase the influence and difference of numerical values of different digits on the final numerical value to be displayed, the jump coefficients corresponding to the numerical values in high digits can be increased, that is, the jump coefficients corresponding to the numerical values in high digits are greater than the jump coefficients corresponding to the numerical values in low digits. Specifically, when the other numerical blocks are two-digit or more numerical values, when determining their corresponding jump coefficients, the digits in the middle value can be used as the basis, or the number of any digit in the other numerical blocks can be used as the basis.

[0110] For details, please refer to Figure 2 , Figure 2 FIG. 1 is a flowchart of a specific method for determining a jump coefficient in a numerical processing method according to an embodiment of the present disclosure. Figure 2 As shown in , in some possible implementations, determining the jump coefficients of the other value blocks at corresponding digits may include the following steps:

[0111] S1041: Determine the maximum value within the range of the at least one digit.

[0112] S1042: Calculate the maximum value using the compression mapping function to obtain a calculated value.

[0113] S1043: An integer that is greater than or equal to the calculated value and whose difference from the calculated value is less than 1 is used as a critical value under the preset number of bits.

[0114] S1044: For each other numerical block in the at least one numerical block except the target numerical block, determine the jump coefficient of the other numerical block for the to-be-processed numerical value based on the index of the corresponding digit pre-marked for the other numerical block and the critical value.

[0115] In this step, when determining the jump coefficient of the other numerical block for the numerical value to be processed, after obtaining the critical value under the preset number of bits, the index of the other numerical block at the corresponding number of bits that was pre-marked is retrieved, and combined with the critical value to determine the jump coefficient of the other numerical block for the numerical value to be processed.

[0116] In addition, if it is necessary to further widen the numerical gap between the high-order measurement range and the low-order measurement range, when determining the jump coefficient through the index and critical value of the other numerical block, the index can be set in a multiple power ratio, and then combined with the critical value to obtain the jump coefficient of the other numerical block for the numerical value to be processed.

[0117] In addition, in order to conveniently calculate the jump coefficients of the other value blocks at corresponding digits, after step S1043, determining the jump coefficients of the other value blocks at corresponding digits may further include:

[0118] S1045: Using the critical value as a jump coefficient of the other numerical value blocks for the numerical value to be processed.

[0119] Following the above S104, S105: based on the compressed value and at least one of the jump coefficients, determine a value to be displayed of the value to be processed.

[0120] The disclosed embodiments provide a numerical processing method for performing compression measurement processing on numerical values in a game. By means of compression mapping, a jump coefficient, and other steps, the processing effect of extremely large numerical values is improved, and the effect of dedimensionalizing and compressing multi-digit data is achieved, so that the mapping result is presented with a relatively small number of significant digits, and a function result with a step characteristic is obtained at the same time. This can widen the numerical gap in the game ranking while retaining the accuracy of the numerical value, making it easier for players to perceive and understand, thereby improving the player's gaming experience.

[0121] See also Figure 3 , Figure 3 Flowchart of another numerical processing method provided by the embodiment of the present disclosure. Figure 3 As shown in , another numerical processing method provided by an embodiment of the present disclosure includes:

[0122] S301: Divide a value to be processed into at least one value block according to a preset number of bits.

[0123] S302: Determine a target numerical block in the at least one numerical block, wherein the target numerical block is the numerical block including the highest digit in the numerical value to be processed.

[0124] S303: Perform compression mapping processing on the target value block to obtain a compressed value.

[0125] S304: For each other numerical block except the target numerical block in the at least one numerical block, determine a jump coefficient of the other numerical block at a corresponding digit.

[0126] S305: Determine a value to be displayed of the value to be processed based on the compressed value and at least one of the jump coefficients.

[0127] Among them, the description of step S301 to step S305 can refer to the description of step S101 to step S105, and can achieve the same technical effects and solve the same technical problems, so they are not repeated here.

[0128] S306: Determine the information display item corresponding to the value to be processed.

[0129] The information display item corresponding to the value to be processed is an original dimensional multi-digit value.

[0130] S307: Replace the information display item with the value to be displayed, and display the value to be displayed through the terminal.

[0131] The value to be displayed is a processed dimensionless small-digit value.

[0132] Specifically, for displaying the value to be displayed through the terminal, the information display item corresponding to the value to be processed may be determined first, and then the information display item may be replaced with the value to be displayed, and the value to be displayed may be displayed through the terminal.

[0133] In some possible implementations, before step S305, the method includes:

[0134] According to the current game process of the game, a cross-level accumulation coefficient for the current game process is determined.

[0135] Furthermore, step S305 includes:

[0136] A to-be-displayed value of the to-be-processed value is determined based on the compressed value, at least one of the jump coefficients, and the cross-step accumulation coefficient.

[0137] In this step, when it is necessary to further widen the numerical gap between each numerical block, it is necessary to determine the cross-order accumulation coefficient. Therefore, the cross-order accumulation coefficient can be obtained first, and then the to-be-processed numerical value can be further compressed based on the cross-order accumulation coefficient.

[0138] Specifically, to determine the cross-level cumulative coefficient, the cross-level cumulative coefficient for the current game process may be determined based on the current game process of the game, and then, based on the compressed value and at least one of the jump coefficients, a value to be displayed of the to-be-processed value may be determined, including:

[0139] A to-be-displayed value of the to-be-processed value is determined based on the compressed value, at least one of the jump coefficients, and the cross-step accumulation coefficient.

[0140] In this step, when it is necessary to determine the value to be displayed of the value to be processed, it is necessary to determine the cross-level accumulation coefficient. Therefore, the cross-level accumulation coefficient can be determined based on the current game process of the game, and thus through the current game process, so as to determine the value to be displayed of the value to be processed based on the compressed value, at least one of the jump coefficients and the cross-level accumulation coefficient.

[0141] The number of items and the value of each item of the cross-level cumulative coefficient may be determined according to the current game process of the game, or may be calculated using the compression mapping function and the jump coefficient.

[0142] Next, this embodiment will be described with reference to examples.

[0143] For example, in a specific application, the user's to-be-processed value is 8970927999666333777011, and the preset number of digits is 3, that is, it contains 3 digits. For example, description is given.

[0144] When processing the data to be processed, the number of bits is divided according to the preset number of bits and the order of division from low to high bits:

[0145] 8, 970, 927, 999, 666, 333, 777, 011.

[0146] Set the index of 8 to 8, the index of 970 to 7, the index of 927 to 6, the index of 999 to 5, the index of 666 to 4, the index of 333 to 3, the index of 777 to 2, and the index of 011 to 1.

[0147] Then, for the number 8 in the highest digit, a monotonically increasing log function with a decreasing rate of increase can be used to calculate the compression mapping. The compressed value after compression mapping is:

[0148] ln(x+1)=ln(8+1)=ln9=2.19722.

[0149] Next, for other numerical blocks, namely 970, 927, 999, 666, 333, 777 and 011, we can first determine the maximum value within the preset number of bits. In this example, the maximum value within the range of 3 digits is 999. Then, we use the compression mapping function ln(x+1) to calculate 999 to obtain the calculated value 6.90875, and round it up to an integer of 7 as the critical value under the preset number of bits.

[0150] Then, 7 can be used as a jump factor for each other value block with respect to the value to be processed.

[0151] Therefore, the value to be displayed for the value to be processed can be obtained in the following way:

[0152] R = ln(x + 1) + k × U = 51;

[0153] Among them, R is the value to be displayed, x is the value in the highest position 8, U is the jump coefficient 7, and k is the number of items in the other value blocks 7.

[0154] Furthermore, in order to further widen the numerical gap between the high-digit numerical block and the low-digit numerical block, for each other numerical block, the jump coefficient can be amplified by its corresponding index, such as by k n ×U is calculated, k n The index of each other value block can be obtained by the following method:

[0155] R=ln(x+1)+k1×U+k2×U+k3×U+k4×U+k5×U+k6×U+k7×U.

[0156] In order to further widen the numerical gap between each numerical block, the cross-level cumulative coefficient can be increased for the value to be displayed of the value to be processed. For example, if the game progress is in the i-th game stage, i cross-level cumulative items th can be added accordingly. i .

[0157] Specifically, for the above two calculation methods, the corresponding final calculation methods are:

[0158] R=ln(x+1)+k×U+∑ i th i ;

[0159] R=ln(x+1)+k1×U+k2×U+k3×U+k4×U+k5×U+k6×U+k7×U+∑ i th i.

[0160] Finally, the calculated value to be displayed can be displayed through the terminal.

[0161] Specifically, the value to be displayed is:

[0162] R=51+∑ i th i .

[0163] Among them, ∑ i th i Determined by the game's progress settings.

[0164] The disclosed embodiments provide a numerical processing method for performing compression measurement processing on extremely large numerical values in a game. By means of compression mapping, a jump coefficient, and other steps, the processing effect of extremely large numerical values is improved, and the effect of dedimensionalizing and compressing multi-digit data is achieved, so that the mapping result is presented with a relatively small number of significant digits, and a function result with a step characteristic is obtained at the same time. This can widen the numerical gap in the game ranking while retaining the accuracy of the numerical value, making it easier for players to perceive and understand, thereby improving the player's gaming experience.

[0165] Those skilled in the art will understand that in the above-mentioned method of the specific implementation method, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0166] Based on the same inventive concept, a numerical processing device corresponding to the numerical processing method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned numerical processing method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0167] See also Figure 4 and Figure 5 , Figure 4 This is one of the schematic diagrams of a numerical processing device provided in an embodiment of the present disclosure. Figure 5 This is a second schematic diagram of a numerical processing device provided in an embodiment of the present disclosure.

[0168] like Figure 4 As shown in , the numerical processing device 400 provided by the embodiment of the present disclosure includes:

[0169] The data acquisition module 410 is configured to divide the value to be processed into at least one value block according to a preset number of bits.

[0170] The data determination module 420 is configured to determine a target numerical block in the at least one numerical block, wherein the target numerical block is the numerical block including the highest digit in the numerical value to be processed.

[0171] The compression mapping module 430 is configured to perform compression mapping processing on the target value block to obtain a compressed value.

[0172] The jump coefficient module 440 is configured to determine, for each other value block in the at least one value block except the target value block, a jump coefficient of the other value block at a corresponding digit.

[0173] The data processing module 450 is configured to determine a to-be-displayed value of the to-be-processed value based on the compressed value and at least one of the jump coefficients.

[0174] In an optional implementation, the data acquisition module 410 is specifically configured to:

[0175] Determining a preset number of digits for dividing the value to be processed based on the number of counting digits of the value, wherein the preset number of digits includes at least one digit;

[0176] For the value to be processed, the value to be processed is divided into at least one value block according to the preset number of bits in a division order from low digits to high digits.

[0177] In an optional implementation, the compression mapping module 430 is specifically configured to:

[0178] Obtaining a compression mapping function for the value to be processed and the target value block in the value to be processed, wherein the compression mapping function is a monotonically increasing function with a continuously decreasing increasing rate;

[0179] The target value block is calculated using the compression mapping function to obtain a compressed value after compression mapping.

[0180] In an optional implementation manner, the jump coefficient module 440 is specifically configured to:

[0181] determining a maximum value within the range of the at least one digit;

[0182] Calculating the maximum value using the compression mapping function to obtain a calculated value;

[0183] An integer greater than or equal to the calculated value and having a difference of less than 1 from the calculated value is used as a critical value under the preset number of bits;

[0184] For each other numerical block in the at least one numerical block except the target numerical block, based on the index of the other numerical block at the corresponding digit pre-marked for the other numerical block and the critical value, the jump coefficient of the other numerical block for the to-be-processed numerical value is determined.

[0185] In an optional implementation manner, after the jump coefficient module 440 is configured to use an integer greater than or equal to the calculated value and having a difference of less than 1 from the calculated value as the critical value at the preset number of bits, it is specifically configured to:

[0186] The critical value is used as a jump coefficient of the other value blocks for the value to be processed.

[0187] In an optional embodiment, before determining the jump coefficient of each other numerical block except the target numerical block in the at least one numerical block at a corresponding digit of the other numerical block, the jump coefficient module 440 is specifically configured to:

[0188] For the at least one numerical block, based on at least one digit of each numerical block in the value to be processed, an index is added to each numerical block in a calibration order from low digit to high digit, wherein the higher the digit of the numerical block, the larger the corresponding index.

[0189] In an optional embodiment, as Figure 5 As shown in FIG, the numerical processing device 400 further includes a cumulative coefficient module 460 and a data display module 470, and the cumulative coefficient module 460 and the data display module 470 are used to:

[0190] The accumulation coefficient module 460 is configured to determine a to-be-displayed value of the to-be-processed value based on the compressed value, at least one of the jump coefficients, and the cross-step accumulation coefficient.

[0191] The data display module 470 is configured to display the value to be displayed via the terminal.

[0192] In an optional implementation manner, the accumulation coefficient module 460 is specifically configured to:

[0193] Determining a level-crossing cumulative coefficient for the current game process according to the current game process;

[0194] The determining, based on the compressed value and at least one of the jump coefficients, a value to be displayed of the value to be processed includes:

[0195] A to-be-displayed value of the to-be-processed value is determined based on the compressed value, at least one of the jump coefficients, and the cross-step accumulation coefficient.

[0196] In an optional implementation manner, the data display module 470 is specifically configured to:

[0197] Determine the information display item corresponding to the value to be processed;

[0198] The information display item is replaced by the value to be displayed, and the value to be displayed is displayed through the terminal.

[0199] The disclosed embodiments provide a numerical processing device for performing compression measurement processing on extremely large numerical values in games. By means of compression mapping, jump coefficients, and other steps, the processing effect of extremely large numerical values is improved, and the effect of dedimensionalizing and compressing multi-digit data is achieved, so that the mapping result is presented with a relatively small number of significant digits, and a function result with a step characteristic is obtained at the same time. This can widen the numerical gap in the game ranking while retaining the accuracy of the numerical value, making it easier for players to perceive and understand, thereby improving the player's gaming experience.

[0200] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference can be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0201] Corresponding to the above numerical processing method, the embodiment of the present disclosure further provides an electronic device 600, such as Figure 6 FIG. 6 is a schematic structural diagram of an electronic device 600 provided in an embodiment of the present disclosure, including:

[0202] Processor 610, memory 620, and bus 630; memory 620 is used to store execution instructions, including internal memory 621 and external memory 622; the internal memory 621 here is also called internal memory, which is used to temporarily store the calculation data in the processor 610, as well as the data exchanged with the external memory 622 such as the hard disk. The processor 610 exchanges data with the external memory 622 through the memory 621. When the electronic device 600 is running, the processor 610 and the memory 620 communicate through the bus 630, so that the processor 610 can execute the steps of the above-mentioned numerical processing method.

[0203] The specific execution process of the above instructions can refer to the steps of the numerical processing method described in the embodiment of the present disclosure, and will not be repeated here.

[0204] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program executes the steps of the numerical processing method described in the above method embodiment. The storage medium may be a volatile or non-volatile computer-readable storage medium.

[0205] The embodiments of the present disclosure also provide a computer program product, which includes computer instructions. When the computer instructions are executed by a processor, the steps of the numerical processing method described in the above method embodiment can be executed. For details, please refer to the above method embodiment, which will not be repeated here.

[0206] The computer program product may be implemented in hardware, software, or a combination thereof. In one embodiment, the computer program product is implemented as a computer storage medium. In another embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0207] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and electronic devices can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed methods, devices and electronic devices can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0208] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0209] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0210] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0211] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection of the claims.

Claims

1. A numerical processing method, characterized in that: The method comprises: For a value to be processed, dividing the value to be processed into at least one value block according to a preset number of bits; determining a target numerical block in the at least one numerical block, wherein the target numerical block is the numerical block including the highest digit in the numerical value to be processed; Performing compression mapping processing on the target value block to obtain a compressed value; For each other numerical block except the target numerical block in the at least one numerical block, determining a jump coefficient of the other numerical block at a corresponding digit; A value to be displayed of the value to be processed is determined based on the compressed value and at least one of the jump factors.

2. The method according to claim 1, characterized in that The method of dividing the value to be processed into at least one value block according to a preset number of bits includes: Determining a preset number of digits for dividing the value to be processed based on the number of counting digits of the value, wherein the preset number of digits includes at least one digit; For the value to be processed, the value to be processed is divided into at least one value block according to the preset number of bits in a division order from low digits to high digits.

3. The method according to claim 1, characterized in that The performing compression mapping processing on the target value block to obtain a compressed value includes: Obtaining a compression mapping function for the value to be processed and the target value block in the value to be processed, wherein the compression mapping function is a monotonically increasing function with a continuously decreasing increasing rate; The target value block is calculated using the compression mapping function to obtain a compressed value after compression mapping.

4. The method according to claim 3, characterized in that The step of determining, for each other numerical block except the target numerical block in the at least one numerical block, a jump coefficient of the other numerical block at a corresponding digit includes: determining the maximum value within a range of at least one digit; Calculating the maximum value using the compression mapping function to obtain a calculated value; An integer greater than or equal to the calculated value and having a difference of less than 1 from the calculated value is used as a critical value under the preset number of bits; For each other numerical block in the at least one numerical block except the target numerical block, based on the index of the other numerical block at the corresponding digit pre-marked for the other numerical block and the critical value, the jump coefficient of the other numerical block for the to-be-processed numerical value is determined.

5. The method according to claim 4, characterized in that After taking an integer greater than or equal to the calculated value and having a difference of less than 1 from the calculated value as a critical value at the preset number of bits, the method includes: The critical value is used as a jump coefficient of the other value blocks for the value to be processed.

6. The method according to claim 1, characterized in that Before determining the jump coefficient of each other numerical block except the target numerical block in the at least one numerical block at a corresponding digit of the other numerical block, the method includes: For the at least one numerical block, based on at least one digit of each numerical block in the value to be processed, an index is added to each numerical block in a calibration order from low digit to high digit, wherein the higher the digit of the numerical block, the larger the corresponding index.

7. The method according to claim 1, characterized in that In a case where the value to be processed is a value in a game, before determining a value to be displayed of the value to be processed based on the compressed value and at least one of the jump coefficients, the method further includes: Determining a level-crossing cumulative coefficient for the current game process according to the current game process; The determining, based on the compressed value and at least one of the jump coefficients, a value to be displayed of the value to be processed includes: A to-be-displayed value of the to-be-processed value is determined based on the compressed value, at least one of the jump coefficients, and the cross-step accumulation coefficient.

8. The method according to claim 1, characterized in that After determining the to-be-displayed value of the to-be-processed value based on the compressed value and at least one of the jump coefficients, the method includes: Determine the information display item corresponding to the value to be processed; The information display item is replaced by the value to be displayed, and the value to be displayed is displayed through the terminal.

9. A numerical processing device, characterized in that: The device comprises: A data acquisition module, configured to divide the value to be processed into at least one value block according to a preset number of bits; a data determination module, configured to determine a target numerical block in the at least one numerical block, wherein the target numerical block is the numerical block including the highest digit in the numerical value to be processed; A compression mapping module, configured to perform compression mapping processing on the target value block to obtain a compressed value; a jump coefficient module, configured to determine, for each other numerical block except the target numerical block in the at least one numerical block, a jump coefficient of the other numerical block at a corresponding digit; The data processing module is configured to determine a value to be displayed of the value to be processed based on the compressed value and at least one of the jump coefficients.

10. An electronic device, characterized in that: include: A processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the numerical processing method according to any one of claims 1 to 8 are performed.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the numerical processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Data compression method and equipment

    CN106492460A

  • Game data processing system and method

    CN109739911A