Lines Matching refs:number
15 * \brief C++ API: Rule Based Number Format
58 * The RuleBasedNumberFormat class formats numbers according to a set of rules. This number formatter is
63 * other complicated formatting tasks, such as formatting a number of seconds as hours,
99 * isolate the number's ones digit, format it using this same set of rules, and place the
101 * the number being formatted is an even multiple of 10 (the hyphen is a literal hyphen; 24
104 * <p>For even larger numbers, we can actually look up several parts of the number in the
115 * can change this). To fill in the substitutions, the formatter divides the number being
180 * <p>This is called a <em>negative-number rule,</em> and is identified by "-x"
182 * >> token here means "find the number's absolute value, format it with these
191 * negative-number rule first and then through this rule). Here, the << token refers to
192 * the number's integral part, and the >> to the number's fractional part. The
215 * The body of <tt>%%lenient-parse</tt> isn't a set of number-formatting rules, but a <tt>RuleBasedCollator</tt>
234 * number expressed using ASCII digits. <em>bv</em> may contain spaces, period, and commas,
261 * <td>The rule is a negative-number rule.</td>
285 * on whether it is used to format a number's integral part (or the whole number) or a
286 * number's fractional part. Using a rule set to format a rule's fractional part makes it a
289 * <p>Which rule is used to format a number is defined according to one of the following
293 * <li>If the rule set includes a master rule (and the number was passed in as a <tt>double</tt>),
294 * use the master rule. (If the number being formatted was passed in as a <tt>long</tt>,
296 * <li>If the number is negative, use the negative-number rule.</li>
297 * <li>If the number has a fractional part and is greater than 1, use the improper fraction
299 * <li>If the number has a fractional part and is between 0 and 1, use the proper fraction
302 * to the number. If that rule has two substitutions, its base value is not an even multiple
303 * of its divisor, and the number <em>is</em> an even multiple of the rule's divisor, use the
310 * <li>Ignore negative-number and fraction rules.</li>
311 * <li>For each rule in the list, multiply the number being formatted (which will always be
317 * denominator produces the fraction closest in value to the number being formatted wins.) If
330 * the number being formatted.</p>
334 * number being formatted. An optional <em>substitution descriptor </em>specifies how the
345 * <td>Divide the number by the rule's divisor and format the remainder</td>
349 * <td>in negative-number rule</td>
350 * <td>Find the absolute value of the number and format the result</td>
355 * <td>Isolate the number's fractional part and format it.</td>
365 * <td>Divide the number by the rule's divisor and format the remainder,
377 * <td>Divide the number by the rule's divisor and format the quotient</td>
381 * <td>in negative-number rule</td>
387 * <td>Isolate the number's integral part and format it.</td>
392 * <td>Multiply the number by the rule's base value and format the result.</td>
397 * <td>Format the number unchanged</td>
402 * <td>Omit the optional text if the number is an even multiple of the rule's divisor</td>
406 * <td>in negative-number rule</td>
412 * <td>Omit the optional text if the number is between 0 and 1 (same as specifying both an
418 * <td>Omit the optional text if the number is an integer (same as specifying both an x.x
429 * <td>Omit the optional text if multiplying the number by the rule's base value yields 1.</td>
439 * <td>Perform the mathematical operation on the number, and format the result using the
444 * <td>Perform the mathematical operation on the number, and format the result using a
449 * <td>Perform the mathematical operation on the number, and format the result using the rule
599 * an ordinal suffix from the desired language to the end of a number (e.g. "123rd"),
662 * Return the number of public rule set names.
663 * @return the number of public rule set names.
678 * Return the number of locales for which we have localized rule set display names.
679 * @return the number of locales for which we have localized rule set display names.
725 * Formats the specified 32-bit number using the default ruleset.
726 * @param number The number to format.
729 * @return A textual representation of the number.
732 virtual UnicodeString& format(int32_t number,
737 * Formats the specified 64-bit number using the default ruleset.
738 * @param number The number to format.
741 * @return A textual representation of the number.
744 virtual UnicodeString& format(int64_t number,
748 * Formats the specified number using the default ruleset.
749 * @param number The number to format.
752 * @return A textual representation of the number.
755 virtual UnicodeString& format(double number,
760 * Formats the specified number using the named ruleset.
761 * @param number The number to format.
762 * @param ruleSetName The name of the rule set to format the number with.
767 * @return A textual representation of the number.
770 virtual UnicodeString& format(int32_t number,
776 * Formats the specified 64-bit number using the named ruleset.
777 * @param number The number to format.
778 * @param ruleSetName The name of the rule set to format the number with.
783 * @return A textual representation of the number.
786 virtual UnicodeString& format(int64_t number,
792 * Formats the specified number using the named ruleset.
793 * @param number The number to format.
794 * @param ruleSetName The name of the rule set to format the number with.
799 * @return A textual representation of the number.
802 virtual UnicodeString& format(double number,
956 void format(double number, NFRuleSet& ruleSet);