Meta tags:
description= ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications. The ICU User Guide provides documentation on how to use ICU.;
Headings (most frequently used words):
half, rounding, modes, comparison, down, up, ceiling, floor, contents, of, other, references, even, odd, unnecessary,
Text of the page (most frequently used words):
icu (28), the (24), #rounding (19), half (18), and (15), for (14), are (14), java (11), values (10), rounded (10), docs (9), icu4c (9), down (8), modes (8), formatting (8), setup (8), data (8), this (7), towards (7), with (7), examples (7), documentation (6), use (6), mode (6), code (6), exactly (6), infinity (6), known (6), floor (6), ceiling (6), even (6), icu4j (6), unicode (5), decimal (5), value (5), mark (5), github (4), chart (4), https (4), comparison (4), all (4), also (4), nearest (4), next (4), absolute (4), zero (4), time (4), page (3), org (3), html (3), wikipedia (3), rules (3), api (3), used (3), other (3), unnecessary (3), but (3), rounds (3), default (3), from (3), because (3), odd (3), number (3), point (3), numbers (3), search (3), updating (3), cldr (3), integration (3), release (3), apis (3), collation (3), faq (3), date (3), site (2), uses (2), theme (2), jekyll (2), just (2), terms (2), source (2), wiki (2), ieee (2), 754 (2), com (2), roundingmode (2), references (2), instead (2), negative (2), positive (2), away (2), smaller (2), ties (2), halfup (2), halfdown (2), halffloor (2), halfceiling (2), halfodd (2), halfeven (2), note (2), options (2), jdk (2), shows (2), home (2), git (2), profiling (2), developers (2), contributors (2), user (2), guide (2), break (2), synchronization (2), version (2), update (2), measureunit (2), new (2), publish (2), tests (2), copy (2), build (2), custom (2), string (2), tries (2), normalization (2), design (2), layout (2), rulebasednumberformat (2), calendar (2), services (2), resources (2), locale (2), conversion (2), link (2), edit, 2016, later, inc, others, license, http, www, copyright, back, top, live, article, ieee_754, 2008_revision, clause_4, _attributes_and_rounding, oracle, javase, base, math, context, implement, speleotrove, decifaq1, doesn, perform, any, returns, error, cannot, represented, without, rmi, minus, ecmascript, css, toward, greater, truncation, insignificant, places, simply, removed, larger, similar, round, rne, shown, dotted, digit, often, called, banker, average, free, bias, specified, floating, operations, some, below, not, available, through, increments, resulting, format, when, formatted, digits, following, formatter, that, here, somewhat, odds, definitions, equivalent, same, contents, local, tooling, configs, maven, monitoring, tools, errorprone, eclipse, ant, callgrind, configuring, linux, editing, built, iterator, skipping, test, failures, including, standards, wip, miscellaneous, maintenance, procedure, legalities, healthy, shared, updates, announcements, milestone, tasks, developing, fuzzer, targets, continuous, coding, guidelines, reports, preparsed, ucd, ucharstrie, bytestrie, structures, cobol, resource, tracing, tool, paragraph, engine, ustream, ustdio, boundary, analysis, ignore, punctuation, details, customization, architecture, concepts, transform, rule, tutorial, bidi, algorithm, case, mappings, transforms, trying, final, candidate, messageformat, message, messages, dates, times, formattedvalue, skeletons, legacy, numberformat, universal, scale, zone, timezone, classes, localizing, locales, compression, charset, detection, converter, stringprep, regular, expressions, unicodeset, properties, utext, characteriterator, iterators, utf, chars, strings, why, service, provider, plug, ins, header, only, packaging, building, demos, glossary, info, posix, migration, basics, how, internationalization, contacts, mailing, lists, downloading, copied, document, external, expand, menu, skip, main, content,
Text of the page (random words):
rounding modes icu documentation skip to main content link menu expand external link document search copy copied icu documentation icu documentation downloading icu icu 78 icu 77 icu 76 contacts and mailing lists icu user guide icu internationalization how to use icu unicode basics icu services icu design c posix migration release info glossary demos icu4c icu4c faq building icu4c packaging icu4c c header only apis plug ins icu4j icu4j faq icu4j locale service provider why use icu4j chars and strings utf 8 c code point iterators characteriterator utext properties unicodeset regular expressions stringprep conversion converter conversion data charset detection compression locales and resources locale examples resources localizing with icu date time calendar services calendar examples timezone classes date and time zone examples universal time scale formatting formatting numbers legacy numberformat rounding modes number skeletons formattedvalue rulebasednumberformat rulebasednumberformat examples formatting dates and times date and time formatting examples formatting messages message formatting examples messageformat 2 0 trying mf 2 0 final candidate transforms case mappings bidi algorithm normalization transform rule tutorial collation concepts architecture customization string search collation faq api details collation examples ignore punctuation options boundary analysis break rules io ustdio ustream layout engine paragraph layout icu data icu data build tool resource and data tracing use from cobol design docs custom normalization data structures bytestrie icu code point tries icu string tries ucharstrie preparsed ucd contributors ci reports coding guidelines continuous integration custom icu4c synchronization developing fuzzer targets for icu apis release milestone tasks announcements apis docs build updates copy shared tests healthy code integration tests legalities maintenance release procedure miscellaneous publish publish version 76 1 wip standards update cldr icu integration including icu4c data to icu4j updating measureunit with new cldr data updating measureunit with new cldr data unicode update version numbers skipping known test failures synchronization updating icu s built in break iterator rules user guide editing git and github for icu developers setup for contributors c setup c setup on linux configuring vs code for icu4c profiling icu4c with callgrind java setup ant setup for java eclipse setup for java developers errorprone for java java profiling and monitoring tools maven setup for java source code setup local tooling configs for git and github this site uses just the docs a documentation theme for jekyll search icu documentation api docs icu on github icu home page unicode home page formatting formatting numbers rounding modes rounding modes contents comparison of rounding modes half even half odd half down half up down up half ceiling half floor ceiling floor unnecessary other references comparison the following rounding modes are used with icu s decimal formatter note that icu s use of the terms down and up here are somewhat at odds with other definitions but are equivalent to the same modes used in java s jdk comparison of rounding modes this chart shows the values 2 0 through 2 0 in increments of 0 1 and shows the resulting icu format when formatted with no decimal digits note some of the options below are not available in icu4j because we use the jdk roundingmode ceiling floor down up halfeven halfodd halfceiling halffloor halfdown halfup 2 0 2 2 2 2 2 2 2 2 2 2 2 0 1 9 1 2 1 2 2 2 2 2 2 2 1 9 1 8 1 2 1 2 2 2 2 2 2 2 1 8 1 7 1 2 1 2 2 2 2 2 2 2 1 7 1 6 1 2 1 2 2 2 2 2 2 2 1 6 1 5 1 2 1 2 2 1 1 2 1 2 1 5 1 4 1 2 1 2 1 1 1 1 1 1 1 4 1 3 1 2 1 2 1 1 1 1 1 1 1 3 1 2 1 2 1 2 1 1 1 1 1 1 1 2 1 1 1 2 1 2 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 0 9 0 1 0 1 1 1 1 1 1 1 0 9 0 8 0 1 0 1 1 1 1 1 1 1 0 8 0 7 0 1 0 1 1 1 1 1 1 1 0 7 0 6 0 1 0 1 1 1 1 1 1 1 0 6 0 5 0 1 0 1 0 1 0 1 0 1 0 5 0 4 0 1 0 1 0 0 0 0 0 0 0 4 0 3 0 1 0 1 0 0 0 0 0 0 0 3 0 2 0 1 0 1 0 0 0 0 0 0 0 2 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 1 0 2 1 0 0 1 0 0 0 0 0 0 0 2 0 3 1 0 0 1 0 0 0 0 0 0 0 3 0 4 1 0 0 1 0 0 0 0 0 0 0 4 0 5 1 0 0 1 0 1 1 0 0 1 0 5 0 6 1 0 0 1 1 1 1 1 1 1 0 6 0 7 1 0 0 1 1 1 1 1 1 1 0 7 0 8 1 0 0 1 1 1 1 1 1 1 0 8 0 9 1 0 0 1 1 1 1 1 1 1 0 9 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 1 2 1 1 2 1 1 1 1 1 1 1 1 1 2 2 1 1 2 1 1 1 1 1 1 1 2 1 3 2 1 1 2 1 1 1 1 1 1 1 3 1 4 2 1 1 2 1 1 1 1 1 1 1 4 1 5 2 1 1 2 2 1 2 1 1 2 1 5 1 6 2 1 1 2 2 2 2 2 2 2 1 6 1 7 2 1 1 2 2 2 2 2 2 2 1 7 1 8 2 1 1 2 2 2 2 2 2 2 1 8 1 9 2 1 1 2 2 2 2 2 2 2 1 9 2 0 2 2 2 2 2 2 2 2 2 2 2 0 ceiling floor down up halfeven halfodd halfceiling halffloor halfdown halfup half even this is icu s default rounding mode values exactly on the 0 5 half mark shown dotted in the chart are rounded to the nearest even digit this is often called banker s rounding because it is on average free of bias it is the default mode specified for ieee 754 floating point operations also known as ties to even round to nearest rn or rne half odd similar to half even but rounds ties to the nearest odd number instead of even number half down values exactly on the 0 5 half mark are rounded down next smaller absolute value towards zero half up values exactly on the 0 5 half mark are rounded up next larger absolute value away from zero down all values are rounded towards the next smaller absolute value rounded towards zero or rz also known as truncation because the insignificant decimal places are simply removed up all values are rounded towards the next greater absolute value away from zero half ceiling values exactly on the 0 5 half mark are rounded toward positive infinity this is the default rounding mode in ecmascript in css it is known as nearest half floor values exactly on the 0 5 half mark are rounded towards negative infinity ceiling all values are rounded towards positive infinity also known as ri for rounds to infinity floor all values are rounded towards negative infinity also known as rmi for rounds to minus infinity unnecessary the mode unnecessary doesn t perform any rounding but instead returns an error if the value cannot be represented exactly without rounding other references comparison decimal context docs used by icu4c to implement rounding https speleotrove com decimal decifaq1 html rounding java 11 docs https docs oracle com en java javase 11 docs api java base java math roundingmode html ieee 754 rounding rules https en wikipedia org wiki ieee_754 2008_revision clause_4 _attributes_and_rounding wikipedia article on rounding https en wikipedia org wiki rounding live rounding mode chart rounding mode chart and source code back to top 2016 and later unicode inc and others license terms of use http www unicode org copyright html edit this page on github this site uses just the docs a documentation theme for jekyll
|