A class that defines a quantity by which a number should be multiplied when formatting. More...
#include <numberformatter.h>
A class that defines a quantity by which a number should be multiplied when formatting.
To create a Scale, use one of the factory methods.
Definition at line 1086 of file numberformatter.h.
◆ Scale() [1/3] icu::number::Scale::Scale ( const Scale & other ) ◆ Scale() [2/3] icu::number::Scale::Scale ( Scale && src ) noexcept ◆ ~Scale() icu::number::Scale::~Scale ( ) ◆ Scale() [3/3] icu::number::Scale::Scale ( int32_t magnitude, impl::DecNum * arbitraryToAdopt )This API is for internal use only.
◆ byDecimal()Multiply numbers by an arbitrary value before formatting.
Useful for unit conversions.
This method takes a string in a decimal number format with syntax as defined in the Decimal Arithmetic Specification, available at http://speleotrove.com/decimal
Also see the version of this method that takes a double.
Multiply numbers by an arbitrary value before formatting.
Useful for unit conversions.
This method takes a double; also see the version of this method that takes an exact decimal.
Multiply a number by both a power of ten and by an arbitrary double value.
Do not change the value of numbers when formatting or parsing.
Multiply numbers by a power of ten before formatting.
Useful for combining with a percent unit:
NumberFormatter::with().unit(NoUnit::percent()).multiplier(Scale::powerOfTen(2))
The documentation for this class was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4