CN107704419A - Numeric displaying method and device - Google Patents

Numeric displaying method and device Download PDF

Info

Publication number
CN107704419A
CN107704419A CN201710868629.1A CN201710868629A CN107704419A CN 107704419 A CN107704419 A CN 107704419A CN 201710868629 A CN201710868629 A CN 201710868629A CN 107704419 A CN107704419 A CN 107704419A
Authority
CN
China
Prior art keywords
reference data
predetermined threshold
threshold value
data
digit
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.)
Pending
Application number
CN201710868629.1A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710868629.1A priority Critical patent/CN107704419A/en
Publication of CN107704419A publication Critical patent/CN107704419A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/0225User interface arrangements, e.g. keyboard, display; Interfaces to other computer systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
    • G06F15/0291Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for reading, e.g. e-books

Landscapes

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

Abstract

The disclosure is directed to a kind of numeric displaying method and device.This method includes:When showing reference data, determine whether the reference data is more than or equal to predetermined threshold value;If the reference data is more than or equal to the predetermined threshold value, the digit with reference to numerical digit show with reference to the predeterminated position of numerical digit in the reference data, described with reference to numerical digit is numerical digit corresponding with the highest order of the predetermined threshold value in the reference data.The technical scheme is when showing reference data, if the digit of the reference data is more, the digit for referring to numerical digit can be shown in the predeterminated position of the reference numerical digit of the reference data, it is easy to user quickly to read the numerical value of the reference data according to the digit, avoid numerical value it is larger when the difficult situation of user reading, improve Consumer's Experience.

Description

Numeric displaying method and device
Technical field
This disclosure relates to display technology field, more particularly to a kind of numeric displaying method and device.
Background technology
With the continuous improvement of people's living standard, mobile phone has become the necessary article in people's life, uses Frequency also more and more higher.In order to meet the daily demand of user, calculator is mounted in most of mobile phone.User is using meter When calculating device evaluation, if the numerical value drawn is smaller, user can Rapid reading, but if the numerical value drawn is larger, position Number it is more, user possibly can not Rapid reading, cause Consumer's Experience bad.
The content of the invention
For the problem of user's reading difficulty, the embodiment of the present disclosure provides one when overcoming that numerical value is larger present in correlation technique Kind numeric displaying method and device.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of numeric displaying method, including:
When showing reference data, determine whether the reference data is more than or equal to predetermined threshold value;
If the reference data is more than or equal to the predetermined threshold value, the predeterminated position of numerical digit is referred in the reference data Show the digit with reference to numerical digit, described with reference to numerical digit is highest order in the reference data with the predetermined threshold value Corresponding numerical digit.
The technical scheme provided by this disclosed embodiment can include the following benefits:When showing reference data, if The digit of the reference data is more, can show the counting for referring to numerical digit in the predeterminated position of the reference numerical digit of the reference data Unit, be easy to user quickly to read the numerical value of the reference data according to the digit, avoid numerical value it is larger when user's reading Difficult situation, improves Consumer's Experience.
In one embodiment, methods described also includes:
M predetermined threshold value is set, the digit difference of different predetermined threshold values in the M predetermined threshold value, the M be more than or Integer equal to 2;
It is described when showing reference data, determine whether the reference data includes more than or equal to predetermined threshold value:
When showing reference data, the reference number is determined successively according to the ascending order of the M predetermined threshold value According to whether respectively greater than or equal to the M predetermined threshold value;
If the reference data is more than or equal to the predetermined threshold value, in the reference data with reference to the default of numerical digit Digit described in position display with reference to numerical digit includes:
If the reference data, which is less than, refers to predetermined threshold value, in N number of predeterminated position with reference to numerical digit of the reference data Show described N number of with reference to, each with reference to the digit of numerical digit, N number of reference numerical digit is pre- with N number of mark respectively in numerical digit If numerical digit corresponding to the highest order of threshold value, the mark predetermined threshold value is to be less than the reference in the M predetermined threshold value to preset The predetermined threshold value of threshold value, the N are the integer for being less than or equal to M more than or equal to 1.
In one embodiment, it is described when showing reference data, it is pre- to determine whether the reference data is more than or equal to If threshold value includes:
When showing the reference data, determine the reference data data type whether with preset data type phase Together, the preset data type includes at least one in quantity, price or amount;
If the data type of the reference data is identical with the preset data type, determine whether the reference data is big In or equal to predetermined threshold value.
In one embodiment, methods described also includes:
When opening document or webpage, the label for the reference data that the document or webpage include, the mark are obtained Label indicate the data type of the reference data;
It is described determine the reference data data type it is whether identical with preset data type including:
According to the label of the reference data, determine the reference data data type whether with preset data type phase Together.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of numeric display unit, including:
Determining module, for when showing reference data, determining whether the reference data is more than or equal to predetermined threshold value;
Display module, if being more than or equal to the predetermined threshold value for the reference data, referred in the reference data The predeterminated position of numerical digit shows the digit with reference to numerical digit, it is described with reference to numerical digit be in the reference data with it is described pre- If numerical digit corresponding to the highest order of threshold value.
In one embodiment, described device also includes:
Setup module, for setting M predetermined threshold value, the digit of different predetermined threshold values is different in the M predetermined threshold value, The M is the integer more than or equal to 2;
The determining module includes:
First determination sub-module, for when showing reference data, according to the order that the M predetermined threshold value is ascending Determine whether the reference data is respectively greater than or equal to the M predetermined threshold value successively;
The display module includes:
Display sub-module, predetermined threshold value is referred to if being less than for the reference data, in N number of reference of the reference data The predeterminated position of numerical digit shows described N number of with reference to, each with reference to the digit of numerical digit, N number of reference numerical digit is point in numerical digit The corresponding numerical digit not with the highest order of N number of mark predetermined threshold value, the mark predetermined threshold value is to be less than in the M predetermined threshold value The predetermined threshold value with reference to predetermined threshold value, the N are the integer for being less than or equal to M more than or equal to 1.
In one embodiment, the determining module includes:
Second determination sub-module, for when showing the reference data, determining the data type of the reference data to be No identical with preset data type, the preset data type includes at least one in quantity, price or amount;
3rd determination sub-module, if the data type for the reference data is identical with the preset data type, really Whether the fixed reference data is more than or equal to predetermined threshold value.
In one embodiment, described device also includes:
First acquisition module, for when opening document or webpage, obtaining the reference that the document or webpage include The label of data, the label indicate the data type of the reference data;
Second determination sub-module is used for the label according to the reference data, determines the data class of the reference data Whether type is identical with preset data type.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of numeric display unit, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
When showing reference data, determine whether the reference data is more than or equal to predetermined threshold value;
If the reference data is more than or equal to the predetermined threshold value, the predeterminated position of numerical digit is referred in the reference data Show the digit with reference to numerical digit, described with reference to numerical digit is highest order in the reference data with the predetermined threshold value Corresponding numerical digit.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, be stored thereon with calculating The step of machine instructs, and first aspect any embodiment methods described is realized in the instruction when being executed by processor.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 a are the flow charts of the numeric displaying method according to an exemplary embodiment.
Fig. 1 b are the numerical monitor schematic diagrames according to an exemplary embodiment.
Fig. 1 c are the numerical monitor schematic diagrames according to an exemplary embodiment.
Fig. 1 d are the flow charts of the numeric displaying method according to an exemplary embodiment.
Fig. 1 e are the flow charts of the numeric displaying method according to an exemplary embodiment.
Fig. 2 is the flow chart of the numeric displaying method according to an exemplary embodiment.
Fig. 3 is the flow chart of the numeric displaying method according to an exemplary embodiment.
Fig. 4 a are the structural representations of the numeric display unit according to an exemplary embodiment.
Fig. 4 b are the structural representations of the numeric display unit according to an exemplary embodiment.
Fig. 4 c are the structural representations of the numeric display unit according to an exemplary embodiment.
Fig. 4 d are the structural representations of the numeric display unit according to an exemplary embodiment.
Fig. 5 is the structured flowchart of the numeric display unit according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
The technical scheme that the embodiment of the present disclosure provides relates to the terminal of display numeral, and the terminal can be mobile phone, put down Plate computer, PC, intelligent watch etc., the embodiment of the present disclosure is not construed as limiting to this.In correlation technique, if the number that terminal is shown More according to digit, user possibly can not quickly read the numerical value of the data when consulting, and Consumer's Experience is poor.The embodiment of the present disclosure ,, can be in the ginseng of the reference data if the digit of the reference data is more when showing reference data in the technical scheme of offer The predeterminated position for examining numerical digit shows the digit for referring to numerical digit, is easy to user quickly to read the reference according to the digit The numerical value of data, avoid numerical value it is larger when the difficult situation of user reading, improve Consumer's Experience.
Fig. 1 a are a kind of flow charts of numeric displaying method according to an exemplary embodiment, the numeric displaying method Applied to terminal, as shown in Figure 1a, the numeric displaying method comprises the following steps 101 to step 102:
In a step 101, when showing reference data, determine whether reference data is more than or equal to predetermined threshold value.
Example, terminal can show reference data when using calculator, i.e., the reference data can be that user inputs Be used for the numeral calculated or the numeral that is calculated;Or reference data can be shown when showing document, i.e. the reference Data can be one group of continuous number that document includes;Reference data can also be shown when showing webpage, i.e. the reference data It can be one group of continuous number that webpage includes.
During initialization, user can need to set predetermined threshold value in the terminal according to reading, the highest order of the predetermined threshold value As user needs the numerical digit being identified in reading numerical values.Assuming that the predetermined threshold value is 1000, then illustrate that user is reading Need to identify kilobit during numerical value;Assuming that the predetermined threshold value is 10000, then illustrate that user needs to identify myriabit in reading numerical values.
Exemplified by the embodiment of the present disclosure shows the reference data when terminal is using calculator, it is assumed that the reference data is calculating The numeral drawn, terminal is after the reference data is calculated, it may be determined that whether the reference data is more than or equal to default threshold Value.Assuming that the predetermined threshold value is 1000, then terminal can determine whether the reference data is more than or equal to 1000.
In a step 102, if reference data is more than or equal to predetermined threshold value, the predeterminated position of numerical digit is referred in reference data The digit for referring to numerical digit is shown, this is numerical digit corresponding with the highest order of predetermined threshold value in reference data with reference to numerical digit.
Example, it is assumed that the predetermined threshold value 1000, then the highest order of the predetermined threshold value is kilobit.If reference data be more than or Equal to 1000, illustrate that the kilobit of reference data has the not numeral for 0, the numerical value of reference data is read for the ease of user, eventually End can show its digit " thousand " in the predeterminated position of the kilobit of the reference data.
Or, it is assumed that the predetermined threshold value is 10000, then the highest order of the predetermined threshold value is myriabit.If reference data is more than Or equal to 10000, illustrate that the myriabit of reference data has the not numeral for 0, now terminal can be in the myriabit of the reference data Predeterminated position show its digit " ten thousand ".
Example, the predeterminated position can be top, lower section, left or the right of the display location of reference number position;Or Person's predeterminated position can also overlap with the display location with reference to numerical digit, and now it is default to be shown in this in translucent fashion for digit Position, the embodiment of the present disclosure are not construed as limiting to this.
In the technical scheme provided by this disclosed embodiment, when showing reference data, if the digit of the reference data compared with It is more, can the predeterminated position of the reference numerical digit of the reference data show this refer to numerical digit digit, be easy to user according to The digit quickly reads the numerical value of the reference data, avoid numerical value it is larger when the difficult situation of user reading, improve Consumer's Experience.
In one embodiment, terminal can also set M predetermined threshold value, different predetermined threshold values in the M predetermined threshold value Digit it is different, M is the integer more than or equal to 2., can be ascending according to M predetermined threshold value when showing reference data Order determine successively reference data whether be respectively greater than or equal to M predetermined threshold value.If reference data is less than with reference to default threshold Value, reference data N number of predeterminated position with reference to numerical digit show it is N number of with reference to numerical digit in each digit with reference to numerical digit, N Individual with reference to numerical digit is the corresponding numerical digit of highest order with N number of mark predetermined threshold value respectively, and mark predetermined threshold value is M predetermined threshold value In be less than with reference to predetermined threshold value predetermined threshold value, N be more than or equal to 1 be less than or equal to M integer.
In practical application, if reference data digit is more, the numerical value of representative is huge, only identifies the digit of a numerical digit When still can not cause the quick reading numerical values of user, therefore initialize, user can set multiple predetermined threshold values, each preset threshold The highest order of value is the numerical digit that user needs to be identified in reading numerical values.The embodiment of the present disclosure is to set M predetermined threshold value Exemplified by illustrate, terminal can be ranked up according to the ascending order of the M predetermined threshold value to the M predetermined threshold value, Then the magnitude relationship of the reference data and M predetermined threshold value is determined successively when needing and showing reference data.Terminal can be first First determine whether reference data is more than or equal to the predetermined threshold value of sequence first, if the reference data is more than or equal to sequence first Predetermined threshold value, then then determine whether reference data is more than or equal to the predetermined threshold value of sequence second, until determine first The individual predetermined threshold value more than reference data, the predetermined threshold value are to refer to predetermined threshold value.Now terminal can obtain M default thresholds It is less than the N number of mark predetermined threshold value for referring to predetermined threshold value in value, it is then determined that default respectively at N number of mark in reference data It is N number of corresponding to the highest order of threshold value to refer to numerical digit, and then show that this N number of refers to numerical digit in N number of predeterminated position with reference to numerical digit In each digit for referring to numerical digit.
Assuming that being provided with 4 predetermined threshold values during initialization, the first predetermined threshold value is 10000, and the second predetermined threshold value is 1000000, the 3rd predetermined threshold value is 100000000, and the 4th predetermined threshold value is 10000000000.Shown and calculated with calculator Exemplified by 19429 and 16244 product draws reference data 315604676, terminal is when showing reference data 315604676, warp Cross to compare and determine that 315604676 are more than the first predetermined threshold value, the second predetermined threshold value and the 3rd predetermined threshold value, it is default less than the 4th Threshold value, i.e. the 4th predetermined threshold value be less than in 4 predetermined threshold values with reference to predetermined threshold value the 4th predetermined threshold value 3 marks it is pre- If threshold value is respectively the first predetermined threshold value, the second predetermined threshold value and the 3rd predetermined threshold value.Terminal can determine that reference data Numerical digit corresponding to highest order in 315604676 respectively at the first predetermined threshold value, the second predetermined threshold value and the 3rd predetermined threshold value is Myriabit, megabit and hundred million, now terminal can as shown in Figure 1 b, in the myriabit of reference data 315604676, megabit and hundred million The top of the display location of position shows myriabit, megabit and the digit of hundred million respectively, i.e., in reference data 315604676 Myriabit, megabit and the top of hundred million show the printed words of " ten thousand ", " million " and " hundred million " respectively.
Inputted by user on calculator exemplified by reference data 90547963 calculated, terminal is in display reference data When 90547963, determine that 90547963 are more than the first predetermined threshold value and the second predetermined threshold value by comparing, it is default less than the 3rd Threshold value and the 4th predetermined threshold value, it is with reference to predetermined threshold value now to determine the 3rd predetermined threshold value, and the 3rd is less than in 4 predetermined threshold values 2 mark predetermined threshold values of predetermined threshold value are respectively the first predetermined threshold value and the second predetermined threshold value.Terminal can determine that reference number According in 90547963 respectively at numerical digit corresponding to the highest order of the first predetermined threshold value and the second predetermined threshold value be myriabit and megabit, Now terminal can show respectively in the myriabit of reference data 90547963 and the top of display location of megabit as illustrated in figure 1 c Show the digit of myriabit and megabit, i.e., shown respectively " ten thousand " in the myriabit of reference data 90547963 and the top of megabit The printed words of " million ".
In the technical scheme provided by this disclosed embodiment, when showing reference data, if the digit of the reference data compared with It is more, multiple digits with reference to numerical digit of the reference data can be shown, are easy to user quickly to be read according to the digit The numerical value of the reference data, avoid numerical value it is larger when the difficult situation of user reading, improve Consumer's Experience.
In one embodiment, as shown in Figure 1 d, in a step 101, when showing reference data, determine that reference data is It is no to be more than or equal to predetermined threshold value, it can be realized by step 1011 and step 1012:
In 1011 after step, when showing reference data, determine reference data data type whether with preset data Type is identical.
The preset data type includes at least one in quantity, price or amount.
In step 1012, if the data type of reference data is identical with preset data type, whether reference data is determined More than or equal to predetermined threshold value.
Example, data type is the meaning of the mathematics or physics representated by data, if reference data reflection quantity, valency The information such as money or amount, the i.e. data type of the reference data are quantity, price or amount.Under normal circumstances, if ginseng The information such as data reflection quantity, price or amount are examined, then user needs reading numerical values when consulting;If reference data describes Be the information such as order number, telephone number or cell-phone number, then user consult when need not read its numerical value.Therefore, during initialization Terminal can set preset data type, and the preset data type can be any data class with mathematics or physical significance Type, such as including at least one in quantity, price or amount.
Terminal when showing reference data, can determine first the reference data data type whether with preset data class Any one data type in type is identical, then illustrates that the data type of the reference data is identical with preset data type.If should The data type of reference data is identical with preset data type, illustrates that user needs to read its number when consulting the reference data Value, now terminal can determine the magnitude relationship of the reference data and at least one predetermined threshold value, and true according to the magnitude relationship Determine that reference data includes it is at least one refer to numerical digit, and then know digit with reference to numerical digit subscript at this, detailed process refers to Above-described embodiment.
, can be according to the data of the reference data in reference data in the technical scheme provided by this disclosed embodiment Type determines whether user needs to read the numerical value of the reference data, avoids the display counting list when user does not need reading numerical values Reading difficulty caused by position, improves Consumer's Experience.
In one embodiment, as shown in fig. le, method also includes 104:
At step 104, when opening document or webpage, the label for the reference data that document or webpage include is obtained, should Label indicates the data type of reference data.
In step 1011, determine whether the data type of reference data is identical with preset data type, step can be passed through Rapid 1011a is realized:
In step 1011a, according to the label of reference data, determine reference data data type whether with preset data Type is identical.
Example, for the ease of terminal when showing document or webpage, determine whether user needs to read the document or net The numerical value of reference data in page, that is, determine reference data in the document or webpage data type whether with preset data type phase Together, server can be each numeral addition label in the document or webpage when generating document or webpage.By taking webpage as an example, , can wherein the first reference data reflects price information, during server generation webpage assuming that the webpage includes three groups of reference datas Think that first reference data sets label, the label indicates that the data type of first reference data is price;Second reference Data reflect commodity amount information, can be that second reference data sets label, the label instruction when server generates webpage The data type of second reference data is quantity;3rd reference data reflects sequence information, can be with during server generation webpage Label is set for the 3rd reference data, the label indicates that the data type of the 3rd reference data is non-reading type.
Terminal can obtain the label of three groups of reference datas first, then determine this three groups successively when opening the webpage Whether the data type of the label instruction of reference data is identical with preset data type, and in display data type and preset data During type identical reference data, it is unit that display, which is corresponded to reference to numerical digit,.For example, terminal obtains the first reference data, the The label of two reference datas and the 3rd reference data, the first reference number is then determined according to the label of three reference datas respectively According to data type be price, the data type of the second reference data is quantity, and the data type of the 3rd reference data is non-reading Type is taken, now terminal can determine the data type and preset data type phase of the first reference data and the second reference data Together, the data type of the 3rd reference data differs with preset data type.Showing the first reference data and the second reference number According to when, terminal can determine the magnitude relationship of the first reference data and the second reference data and multiple predetermined threshold values, and root respectively Obtain the first reference data and at least one of the second reference data according to the magnitude relationship and refer to numerical digit, and show respectively this first The digit of the reference numerical digit of reference data and the second reference data.When showing three reference datas, terminal can be according to Normal display mode shown, i.e. not label &count unit.
In the technical scheme provided by this disclosed embodiment, what terminal can be formed according to document or webpage to reference data Label determines the data type of reference data, improves the accuracy rate and convenience for determining data type.
Implementation process is discussed in detail below by several embodiments.
Fig. 2 is a kind of flow chart of numeric displaying method according to an exemplary embodiment, and executive agent is terminal, As shown in Fig. 2 comprise the following steps 201 to step 207:
In step 201, during initialization, M predetermined threshold value is set, the digit of different predetermined threshold values in M predetermined threshold value It is different.
In step 202, M predetermined threshold value is ranked up and numbered according to M predetermined threshold value ascending order.
In step 203, when showing reference data, determine whether the reference data is more than or equal to the i-th predetermined threshold value; If the reference data is more than or equal to the i-th predetermined threshold value, step 204 is performed;If the reference data is less than the i-th predetermined threshold value, hold Row step 205.
Example, i-th predetermined threshold value is the predetermined threshold value of sequence i-th.
In step 204, assign i+1 to i, perform step 203.
In step 205, i-1 mark predetermined threshold value of the sequence from 1 to i-1 is obtained.
In step 206, i-1 corresponding with the highest order of this i-1 mark predetermined threshold value respectively is determined in reference data It is individual to refer to numerical digit.
In step 207, each referred in this i-1 predeterminated position with reference to numerical digit shows this i-1 with reference to numerical digit The digit of numerical digit.
Embodiment of the disclosure provides a kind of numeric displaying method, when showing reference data, if the position of the reference data Number it is more, can at least one predeterminated position with reference to numerical digit of the reference data show refer to numerical digit digit, just The numerical value of the reference data is quickly read according to the digit in user, avoid numerical value it is larger when the difficult feelings of user reading Condition, improve Consumer's Experience.
Fig. 3 is a kind of flow chart of numeric displaying method according to an exemplary embodiment, and executive agent is terminal, As shown in figure 3, comprise the following steps 301 to step 310:
In step 301, during initialization, M predetermined threshold value is set, the digit of different predetermined threshold values in M predetermined threshold value It is different.
In step 302, M predetermined threshold value is ranked up and numbered according to M predetermined threshold value ascending order.
In step 303, when opening document or webpage, the label for the reference data that the document or webpage include is obtained, The label indicates the data type of reference data.
In step 304, according to the label of the reference data, determine the reference data data type whether with present count It is identical according to type;If the data type of the reference data differs with preset data type, step 305 is performed;If the reference number According to data type it is identical with preset data type, perform step 306.
In step 305, the reference data is shown according to normal display rule.
Within step 306, determine whether the reference data is more than or equal to the i-th predetermined threshold value;If the reference data is more than Or equal to the i-th predetermined threshold value, perform step 307;If the reference data is less than the i-th predetermined threshold value, step 308 is performed.
Example, i-th predetermined threshold value is the predetermined threshold value of sequence i-th.
In step 307, assign i+1 to i, perform step 306.
In step 308, i-1 mark predetermined threshold value of the sequence from 1 to i-1 is obtained.
In a step 309, i-1 corresponding with the highest order of this i-1 mark predetermined threshold value respectively is determined in reference data It is individual to refer to numerical digit.
In the step 310, each referred in this i-1 predeterminated position with reference to numerical digit shows this i-1 with reference to numerical digit The digit of numerical digit.
Embodiment of the disclosure provides a kind of numeric displaying method, when showing reference data, if the position of the reference data Number it is more, can at least one predeterminated position with reference to numerical digit of the reference data show refer to numerical digit digit, just The numerical value of the reference data is quickly read according to the digit in user, avoid numerical value it is larger when the difficult feelings of user reading Condition, improve Consumer's Experience.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.
Fig. 4 a are a kind of structural representations of numeric display unit 40 according to an exemplary embodiment, the device 40 It can be implemented in combination with by software, hardware or both as some or all of of electronic equipment.As shown in fig. 4 a, the number Word display device 40 includes determining module 401 and display module 402.
Determining module 401, for when showing reference data, determining whether the reference data is more than or equal to default threshold Value.
Display module 402, if being more than or equal to the predetermined threshold value for the reference data, join in the reference data The predeterminated position for examining numerical digit shows the digit with reference to numerical digit, it is described with reference to numerical digit be in the reference data with it is described Numerical digit corresponding to the highest order of predetermined threshold value.
In one embodiment, as shown in Figure 4 b, described device 40 also includes setup module 403, the determining module 401 Including the first determination sub-module 4011, the display module 402 includes display sub-module 4021.
Wherein, setup module 403, for setting M predetermined threshold value, different predetermined threshold values in the M predetermined threshold value Digit is different, and the M is the integer more than or equal to 2.
First determination sub-module 4011, for when showing the reference data, according to the M predetermined threshold value by it is small to Big order determines whether the reference data is respectively greater than or equal to the M predetermined threshold value successively.
Display sub-module 4021, predetermined threshold value is referred to if being less than for the reference data, in the N number of of the reference data With reference to numerical digit predeterminated position show it is described N number of with reference to the digit that numerical digit is each referred in numerical digit, it is described N number of to refer to numerical digit For numerical digit corresponding with the highest order of N number of mark predetermined threshold value respectively, the mark predetermined threshold value is in the M predetermined threshold value Less than the predetermined threshold value with reference to predetermined threshold value, the N is the integer for being less than or equal to M more than or equal to 1.
In one embodiment, as illustrated in fig. 4 c, the determining module 401 includes the second determination sub-module 4012 and the 3rd Determination sub-module 4013.
Wherein, the second determination sub-module 4012, for when showing the reference data, determining the number of the reference data Whether identical with preset data type according to type, the preset data type includes at least one in quantity, price or amount It is individual.
3rd determination sub-module 4013, if data type and the preset data type phase for the reference data Together, determine whether the reference data is more than or equal to predetermined threshold value.
In one embodiment, as shown in figure 4d, described device 40 also includes the first acquisition module 404.
Wherein, the first acquisition module 404, for when opening document or webpage, obtaining what the document or webpage included The label of the reference data, the label indicate the data type of the reference data;
Second determination sub-module 4012 is used for the label according to the reference data, determines the number of the reference data It is whether identical with preset data type according to type.
Embodiment of the disclosure provides a kind of numeric display unit, when showing reference data, if the position of the reference data Number it is more, the device can at least one predeterminated position with reference to numerical digit of the reference data show refer to numerical digit counting list Position, be easy to user quickly to read the numerical value of the reference data according to the digit, avoid numerical value it is larger when user's reading be stranded Difficult situation, improves Consumer's Experience.
The embodiment of the present disclosure provides a kind of numeric display unit, and the numeric display unit includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, processor is configured as:
When showing reference data, determine whether the reference data is more than or equal to predetermined threshold value;
If the reference data is more than or equal to the predetermined threshold value, the predeterminated position of numerical digit is referred in the reference data Show the digit with reference to numerical digit, described with reference to numerical digit is highest order in the reference data with the predetermined threshold value Corresponding numerical digit.
In one embodiment, above-mentioned processor is also configured to:M predetermined threshold value, the M predetermined threshold value are set The digit of middle different predetermined threshold values is different, and the M is the integer more than or equal to 2;When showing the reference data, according to institute State the ascending order of M predetermined threshold value and determine whether the reference data is respectively greater than or is preset equal to the M successively Threshold value;If the reference data, which is less than, refers to predetermined threshold value, shown in N number of predeterminated position with reference to numerical digit of the reference data Described N number of with reference to the digit that numerical digit is each referred in numerical digit, N number of reference numerical digit is to identify default threshold with N number of respectively Numerical digit corresponding to the highest order of value, the mark predetermined threshold value are to refer to predetermined threshold value less than described in the M predetermined threshold value Predetermined threshold value, the N be more than or equal to 1 be less than or equal to M integer.
In one embodiment, above-mentioned processor is also configured to:When showing the reference data, the ginseng is determined Whether identical with preset data type examine the data type of data, the preset data type includes quantity, price or amount In it is at least one;If the data type of the reference data is identical with the preset data type, the reference data is determined Whether predetermined threshold value is more than or equal to.
In one embodiment, above-mentioned processor is also configured to:When opening document or webpage, the document is obtained Or the label of the reference data that webpage includes, the label indicate the data type of the reference data;According to the ginseng The label of data is examined, determines whether the data type of the reference data is identical with preset data type.
Embodiment of the disclosure provides a kind of numeric display unit, when showing reference data, if the position of the reference data Number it is more, the device can at least one predeterminated position with reference to numerical digit of the reference data show refer to numerical digit counting list Position, be easy to user quickly to read the numerical value of the reference data according to the digit, avoid numerical value it is larger when user's reading be stranded Difficult situation, improves Consumer's Experience.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of structured flowchart for numeric display unit 50 according to an exemplary embodiment, the device 50 are applied to terminal device.For example, device 50 can be mobile phone, and computer, digital broadcast terminal, messaging devices, Game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 50 can include following one or more assemblies:Processing component 502, memory 504, power supply module 506 are more Media component 508, audio-frequency assembly 510, the interface 512 of input/output (I/O), sensor cluster 514, and communication component 516。
The integrated operation of the usual control device 50 of processing component 502, such as communicated with display, call, data, camera The operation that operation and record operation are associated.Processing component 502 can carry out execute instruction including one or more processors 520, To complete all or part of step of above-mentioned method.In addition, processing component 502 can include one or more modules, it is easy to Interaction between processing component 502 and other assemblies.For example, processing component 502 can include multi-media module, to facilitate more matchmakers Interaction between body component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 50.These data are shown Example includes the instruction of any application program or method for operating on apparatus 50, contact data, telephone book data, disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 50.Power supply module 506 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 50.
Multimedia groupware 508 is included in the screen of one output interface of offer between described device 50 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 50 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 510 is configured as output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when device 50 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone is configured To receive external audio signal.The audio signal received can be further stored in memory 504 or via communication component 516 send.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 514 includes one or more sensors, for providing the state estimation of various aspects for device 50. For example, sensor cluster 514 can detect opening/closed mode of device 50, the relative positioning of component, such as the component For the display and keypad of device 50, sensor cluster 514 can be with the position of 50 1 components of detection means 50 or device Change, the existence or non-existence that user contacts with device 50, the orientation of device 50 or acceleration/deceleration and the temperature change of device 50. Sensor cluster 514 can include proximity transducer, be configured to detect object nearby in no any physical contact Presence.Sensor cluster 514 can also include optical sensor, such as CMOS or ccd image sensor, in imaging applications Use.In certain embodiments, the sensor cluster 514 can also include acceleration transducer, gyro sensor, magnetic sensing Device, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 50 and other equipment.Device 50 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 50 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 520 of device 50.For example, institute State non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
The embodiment of the present disclosure also provides a kind of non-transitorycomputer readable storage medium, the finger in the storage medium When making the computing device by device 50 so that device 50 is able to carry out above-mentioned numeric displaying method, and methods described includes:
When showing reference data, determine whether the reference data is more than or equal to predetermined threshold value;
If the reference data is more than or equal to the predetermined threshold value, the predeterminated position of numerical digit is referred in the reference data Show the digit with reference to numerical digit, described with reference to numerical digit is highest order in the reference data with the predetermined threshold value Corresponding numerical digit.
In one embodiment, methods described also includes:M predetermined threshold value is set, and difference is in advance in the M predetermined threshold value If the digit of threshold value is different, the M is the integer more than or equal to 2;It is described when showing reference data, determine the reference number According to whether including more than or equal to predetermined threshold value:It is ascending according to the M predetermined threshold value when showing the reference data Order determine successively the reference data whether be respectively greater than or equal to the M predetermined threshold value;If the reference number According to more than or equal to the predetermined threshold value, the meter with reference to numerical digit is shown with reference to the predeterminated position of numerical digit in the reference data Number unit includes:If the reference data, which is less than, refers to predetermined threshold value, in N number of default position with reference to numerical digit of the reference data Put show it is described it is N number of with reference in numerical digit each refer to numerical digit digit, it is described it is N number of with reference to numerical digit for respectively with N number of mark Numerical digit corresponding to the highest order of predetermined threshold value, the mark predetermined threshold value are to be less than the reference in the M predetermined threshold value in advance If the predetermined threshold value of threshold value, the N is the integer for being less than or equal to M more than or equal to 1.
In one embodiment, it is described when showing reference data, it is pre- to determine whether the reference data is more than or equal to If threshold value includes:When showing the reference data, determine the reference data data type whether with preset data type Identical, the preset data type includes at least one in quantity, price or amount;If the data class of the reference data Type is identical with the preset data type, determines whether the reference data is more than or equal to predetermined threshold value.
In one embodiment, methods described also includes:When opening document or webpage, document or the webpage bag is obtained The label of the reference data included, the label indicate the data type of the reference data;It is described to determine the reference number According to data type it is whether identical with preset data type including:According to the label of the reference data, the reference number is determined According to data type it is whether identical with preset data type.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (10)

  1. A kind of 1. numeric displaying method, it is characterised in that including:
    When showing reference data, determine whether the reference data is more than or equal to predetermined threshold value;
    If the reference data is more than or equal to the predetermined threshold value, shown in the reference data with reference to the predeterminated position of numerical digit The digit with reference to numerical digit, it is described with reference to numerical digit be the reference data in it is corresponding with the highest order of the predetermined threshold value Numerical digit.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:
    M predetermined threshold value is set, the digit difference of different predetermined threshold values in the M predetermined threshold value, the M for more than or equal to 2 integer;
    It is described when showing reference data, determine whether the reference data includes more than or equal to predetermined threshold value:
    When showing the reference data, the reference number is determined successively according to the ascending order of the M predetermined threshold value According to whether respectively greater than or equal to the M predetermined threshold value;
    If the reference data is more than or equal to the predetermined threshold value, the predeterminated position of numerical digit is referred in the reference data Show that the digit with reference to numerical digit includes:
    If the reference data, which is less than, refers to predetermined threshold value, shown in N number of predeterminated position with reference to numerical digit of the reference data Described N number of with reference to the digit that numerical digit is each referred in numerical digit, N number of reference numerical digit is to identify default threshold with N number of respectively Numerical digit corresponding to the highest order of value, the mark predetermined threshold value are to refer to predetermined threshold value less than described in the M predetermined threshold value Predetermined threshold value, the N be more than or equal to 1 be less than or equal to M integer.
  3. 3. method according to claim 1 or 2, it is characterised in that it is described when showing reference data, determine the reference Whether data include more than or equal to predetermined threshold value:
    When showing the reference data, determine whether the data type of the reference data is identical with preset data type, institute Preset data type is stated including at least one in quantity, price or amount;
    If the data type of the reference data is identical with the preset data type, determine the reference data whether be more than or Equal to predetermined threshold value.
  4. 4. according to the method for claim 3, it is characterised in that methods described also includes:
    When opening document or webpage, the label for the reference data that the document or webpage include is obtained, the label refers to Show the data type of the reference data;
    It is described determine the reference data data type it is whether identical with preset data type including:
    According to the label of the reference data, determine whether the data type of the reference data is identical with preset data type.
  5. A kind of 5. numeric display unit, it is characterised in that including:
    Determining module, for when showing reference data, determining whether the reference data is more than or equal to predetermined threshold value;
    Display module, if being more than or equal to the predetermined threshold value for the reference data, numerical digit is referred in the reference data Predeterminated position show the digit with reference to numerical digit, it is described with reference to numerical digit be in the reference data with the default threshold Numerical digit corresponding to the highest order of value.
  6. 6. device according to claim 5, it is characterised in that described device also includes:
    Setup module, for setting M predetermined threshold value, the digit of different predetermined threshold values is different in the M predetermined threshold value, described M is the integer more than or equal to 2;
    The determining module includes:
    First determination sub-module, for when showing the reference data, according to the order that the M predetermined threshold value is ascending Determine whether the reference data is respectively greater than or equal to the M predetermined threshold value successively;
    The display module includes:
    Display sub-module, predetermined threshold value is referred to if being less than for the reference data, N number of in the reference data refers to numerical digit Predeterminated position show it is described it is N number of with reference in numerical digit each refer to numerical digit digit, it is described it is N number of with reference to numerical digit for respectively with Numerical digit corresponding to the highest order of N number of mark predetermined threshold value, the mark predetermined threshold value are less than described in the M predetermined threshold value With reference to the predetermined threshold value of predetermined threshold value, the N is the integer for being less than or equal to M more than or equal to 1.
  7. 7. the device according to claim 5 or 6, it is characterised in that the determining module includes:
    Second determination sub-module, for when showing the reference data, determine the reference data data type whether with Preset data type is identical, and the preset data type includes at least one in quantity, price or amount;
    3rd determination sub-module, if the data type for the reference data is identical with the preset data type, determine institute State whether reference data is more than or equal to predetermined threshold value.
  8. 8. device according to claim 7, it is characterised in that described device also includes:
    First acquisition module, for when opening document or webpage, obtaining the reference data that the document or webpage include Label, the label indicates the data type of the reference data;
    Second determination sub-module is used for the label according to the reference data, and determining the data type of the reference data is It is no identical with preset data type.
  9. A kind of 9. numeric display unit, it is characterised in that including:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    When showing reference data, determine whether the reference data is more than or equal to predetermined threshold value;
    If the reference data is more than or equal to the predetermined threshold value, shown in the reference data with reference to the predeterminated position of numerical digit The digit with reference to numerical digit, it is described with reference to numerical digit be the reference data in it is corresponding with the highest order of the predetermined threshold value Numerical digit.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the instruction is by processor The step of Claims 1-4 any one claim methods described is realized during execution.
CN201710868629.1A 2017-09-22 2017-09-22 Numeric displaying method and device Pending CN107704419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710868629.1A CN107704419A (en) 2017-09-22 2017-09-22 Numeric displaying method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710868629.1A CN107704419A (en) 2017-09-22 2017-09-22 Numeric displaying method and device

Publications (1)

Publication Number Publication Date
CN107704419A true CN107704419A (en) 2018-02-16

Family

ID=61174366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710868629.1A Pending CN107704419A (en) 2017-09-22 2017-09-22 Numeric displaying method and device

Country Status (1)

Country Link
CN (1) CN107704419A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743451A (en) * 2018-12-28 2019-05-10 Oppo广东移动通信有限公司 Control method, electronic device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2546951Y (en) * 2002-01-29 2003-04-23 徐立强 Calculator of displaying digit and Chinese characters unit
CN102640088A (en) * 2009-11-30 2012-08-15 乐天株式会社 Input numerical value display device, input numerical value display program, server device for input numerical value display, input numerical value display method, and recording medium wherein input numerical value display program is recorded
CN105893315A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Numerical conversion method and device, and mobile phone
CN106557452A (en) * 2015-09-25 2017-04-05 阿里巴巴集团控股有限公司 For the display packing of numeric character or character string, device, equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2546951Y (en) * 2002-01-29 2003-04-23 徐立强 Calculator of displaying digit and Chinese characters unit
CN102640088A (en) * 2009-11-30 2012-08-15 乐天株式会社 Input numerical value display device, input numerical value display program, server device for input numerical value display, input numerical value display method, and recording medium wherein input numerical value display program is recorded
CN106557452A (en) * 2015-09-25 2017-04-05 阿里巴巴集团控股有限公司 For the display packing of numeric character or character string, device, equipment and system
CN105893315A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Numerical conversion method and device, and mobile phone

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743451A (en) * 2018-12-28 2019-05-10 Oppo广东移动通信有限公司 Control method, electronic device, computer equipment and storage medium
CN109743451B (en) * 2018-12-28 2020-08-28 Oppo广东移动通信有限公司 Control method, electronic device, computer apparatus, and storage medium

Similar Documents

Publication Publication Date Title
CN107239535A (en) Similar pictures search method and device
CN103944804B (en) Contact recommending method and device
CN106202330A (en) The determination methods of junk information and device
CN104020924B (en) Label creation method, device and terminal
CN104536935B (en) Calculate display methods, calculate edit methods and device
CN106469054A (en) notification message control method, device and terminal
CN106547338A (en) Instruction generation method and device
CN107066172A (en) The document transmission method and device of mobile terminal
CN103885712B (en) Webpage method of adjustment, device and electronic equipment
CN104793843B (en) desktop display method and device
CN104133623B (en) Page zoom-in and zoom-out method and apparatus
CN106547466A (en) Display control method and device
CN105094465B (en) Ambient light measurement method and device
CN107230137A (en) Merchandise news acquisition methods and device
CN106775248A (en) Push the methods of exhibiting and device of content
CN103970841A (en) Label management method and device
CN106383627A (en) Information displaying method and apparatus
CN107704190A (en) Gesture identification method, device, terminal and storage medium
CN106775210A (en) The method and apparatus that wallpaper is changed
CN105551047A (en) Picture content detecting method and device
CN107491238A (en) The display methods and device of pushed information
CN106936986A (en) Application processing method and device
CN107423059A (en) Display methods, device and the terminal of the page
CN106778125A (en) unlocking method, device and equipment
CN107402756A (en) For drawing the method, apparatus and terminal of the page

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180216

RJ01 Rejection of invention patent application after publication