ICU 76.1  76.1
unumberoptions.h
Go to the documentation of this file.
1 // © 2017 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 
4 #ifndef __UNUMBEROPTIONS_H__
5 #define __UNUMBEROPTIONS_H__
6 
7 #include "unicode/utypes.h"
8 
9 #if !UCONFIG_NO_FORMATTING
10 
29  UNUM_ROUND_CEILING,
30  UNUM_ROUND_FLOOR,
31  UNUM_ROUND_DOWN,
32  UNUM_ROUND_UP,
38 #ifndef U_HIDE_DEPRECATED_API
39 
44 #endif /* U_HIDE_DEPRECATED_API */
45  UNUM_ROUND_HALFDOWN = UNUM_ROUND_HALFEVEN + 1,
46  UNUM_ROUND_HALFUP,
68 
69 
103 
119 
134 
150 
158 
159 #ifndef U_HIDE_INTERNAL_API
160  ,
167 #endif /* U_HIDE_INTERNAL_API */
168 
170 
171 
172 #endif /* #if !UCONFIG_NO_FORMATTING */
173 #endif //__UNUMBEROPTIONS_H__
Half-even rounding, misspelled name.
UNumberGroupingStrategy
An enum declaring the strategy for when and how to display grouping separators (i.e., the separator, often a comma or period, after every 2-3 powers of ten).
Rounds ties toward the odd number.
Rounds ties toward +∞.
Half-even rounding.
Do not display grouping separators in any locale.
Rounds ties toward -∞.
Display grouping using locale defaults, except do not show grouping on values smaller than 10000 (suc...
Always display the grouping separator on values of at least 1000.
Use the Western defaults: groups of 3 and enabled for all numbers 1000 or greater.
UNumberFormatRoundingMode
The possible number format rounding modes.
One more than the highest UNumberGroupingStrategy value.
ROUND_UNNECESSARY reports an error if formatted result is not exact.
Basic definitions for ICU, for both C and C++ APIs.
Display grouping using the default strategy for all locales.