Lines Matching defs:number
9 #include "src/objects/js-number-format.h"
16 #include "src/objects/js-number-format-inl.h"
36 // or "unit" identifying the style of the number format.
40 // or "narrowSymbol" identifying the display of the currency number format.
68 // "engineering", or "compact", specifying whether the number should be
105 // specifying the rounding strategy for the number.
122 // whole number.
192 icu::number::Notation ToICUNotation(Notation notation,
196 return icu::number::Notation::simple();
198 return icu::number::Notation::scientific();
200 return icu::number::Notation::engineering();
205 return icu::number::Notation::compactShort();
208 return icu::number::Notation::compactLong();
359 // 2. If the number of elements in normalized is not 3, return false.
685 // Return the minimum integer digits by counting the number of '0' after
694 // count the number of 0 after "integer-width/*"
709 // The minimum fraction digits is the number of '0' after '.' in the skeleton
710 // The maximum fraction digits is the number of '#' after the above '0's plus
736 // The minimum significant digits is the number of '@' in the skeleton
737 // The maximum significant digits is the number of '#' after these '@'s plus
825 icu::number::UnlocalizedNumberFormatter SetDigitOptionsToFormatterV2(
826 const icu::number::UnlocalizedNumberFormatter& settings,
828 icu::number::UnlocalizedNumberFormatter result = settings;
830 result = result.integerWidth(icu::number::IntegerWidth::zeroFillTo(
837 icu::number::Precision precision =
839 ? icu::number::Precision::minMaxSignificantDigits(
842 : icu::number::Precision::minMaxFraction(
849 icu::number::UnlocalizedNumberFormatter SetDigitOptionsToFormatterV3(
850 const icu::number::UnlocalizedNumberFormatter& settings,
853 icu::number::UnlocalizedNumberFormatter result = settings;
855 result = result.integerWidth(icu::number::IntegerWidth::zeroFillTo(
859 icu::number::Precision precision = icu::number::Precision::unlimited();
863 precision = icu::number::Precision::minMaxSignificantDigits(
868 precision = icu::number::Precision::minMaxFraction(
877 icu::number::Precision::minMaxFraction(
889 precision = ::icu::number::Precision::increment(icu_increment)
900 icu::number::UnlocalizedNumberFormatter
902 const icu::number::UnlocalizedNumberFormatter& settings,
920 icu::number::LocalizedNumberFormatter* icu_number_formatter =
1205 icu::number::UnlocalizedNumberFormatter settings =
1206 icu::number::UnlocalizedNumberFormatter().roundingMode(UNUM_ROUND_HALFUP);
1389 .scale(icu::number::Scale::powerOfTen(2));
1611 icu::number::LocalizedNumberFormatter icu_number_formatter =
1614 icu::number::LocalizedNumberRangeFormatter icu_number_range_formatter =
1615 icu::number::UnlocalizedNumberRangeFormatter()
1619 Handle<Managed<icu::number::LocalizedNumberFormatter>>
1621 Managed<icu::number::LocalizedNumberFormatter>::FromRawPtr(
1623 new icu::number::LocalizedNumberFormatter(icu_number_formatter));
1625 Handle<Managed<icu::number::LocalizedNumberRangeFormatter>>
1627 Managed<icu::number::LocalizedNumberRangeFormatter>::FromRawPtr(
1629 new icu::number::LocalizedNumberRangeFormatter(
1651 const icu::number::LocalizedNumberFormatter& number_format,
1652 Handle<Object> numeric_obj, icu::number::FormattedNumber* formatted) {
1692 double number = numeric_obj->IsNaN()
1695 *formatted = number_format.formatDouble(number, status);
1964 const icu::number::LocalizedNumberFormatter*, bool)>
2052 icu::number::LocalizedNumberRangeFormatter* nrfmt =
2056 icu::number::FormattedNumberRange formatted = nrfmt->formatFormattableRange(
2069 const icu::number::LocalizedNumberFormatter*,
2081 const icu::number::LocalizedNumberFormatter* nfmt, bool is_nan,
2097 const icu::number::LocalizedNumberFormatter* nfmt, bool is_nan) {
2105 const icu::number::LocalizedNumberFormatter& number_format,
2109 icu::number::FormattedNumber formatted;
2122 icu::number::LocalizedNumberFormatter* fmt =
2126 icu::number::FormattedNumber formatted;