/third_party/decimal.js/test/modules/ |
D | toNearest.js | 11 rounding: 4, property 141 Decimal.rounding = 0; 144 Decimal.rounding = 1; 193 Decimal.rounding = 0; 195 Decimal.rounding = 1; 197 Decimal.rounding = 2; 199 Decimal.rounding = 3; 201 Decimal.rounding = 4; 203 Decimal.rounding = 5; 205 Decimal.rounding = 6; [all …]
|
D | config.js | 39 rounding: 4, property 49 t(Decimal.rounding === 4); 59 rounding : 4, property 69 t(Decimal.rounding === 4); 131 T.assertEqual(expected, Decimal.rounding); 134 t(4, {rounding: void 0}); property 135 t(0, {rounding: 0}); property 136 t(1, {rounding: 1}); property 137 t(2, {rounding: 2}); property 138 t(3, {rounding: 3}); property [all …]
|
D | toFixed.js | 15 rounding: 4, property 110 Decimal.rounding = 0; 154 Decimal.rounding = 1; 195 Decimal.rounding = 2; 238 Decimal.rounding = 3; 281 Decimal.rounding = 4; 324 Decimal.rounding = 5; 362 Decimal.rounding = 6; 406 Decimal.rounding = 4; 513 Decimal.rounding = 7; [all …]
|
D | toSD.js | 15 rounding: 7, property 45 Decimal.rounding = 0; 48 Decimal.rounding = 1; 51 Decimal.rounding = 2; 54 Decimal.rounding = 3; 57 Decimal.rounding = 4; 60 Decimal.rounding = 5; 63 Decimal.rounding = 6; 66 Decimal.rounding = 7; 69 Decimal.rounding = 8;
|
D | clone.js | 11 rounding: 4, property 113 rounding: 2, property 120 t(Decimal.rounding === 2); 128 t(D1.rounding === 4); 133 D2 = Decimal.clone({ defaults: true, rounding: 5 }); property 136 t(D2.rounding === 5); 142 t(D3.rounding === 2);
|
D | toExponential.js | 15 rounding: 4, property 110 Decimal.rounding = 0; 161 Decimal.rounding = 1; 213 Decimal.rounding = 2; 261 Decimal.rounding = 3; 316 Decimal.rounding = 4; 369 Decimal.rounding = 5; 422 Decimal.rounding = 6; 471 Decimal.rounding = 4;
|
/third_party/rust/crates/minimal-lexical/tests/ |
D | rounding_tests.rs | 2 use minimal_lexical::rounding; 10 rounding::round::<f64, _>(&mut fp, |f, s| { in round_test() 21 rounding::round::<f64, _>(&mut fp, |f, s| { in round_test() 35 rounding::round::<f64, _>(&mut fp, |f, s| { in round_test() 36 rounding::round_nearest_tie_even(f, s, |is_odd, is_halfway, is_above| { in round_test() 48 rounding::round::<f64, _>(&mut fp, |f, s| { in round_test() 49 rounding::round_nearest_tie_even(f, s, |is_odd, is_halfway, is_above| { in round_test() 61 rounding::round::<f64, _>(&mut fp, rounding::round_down); in round_test()
|
/third_party/decimal.js/ |
D | decimal.global.d.ts | 66 rounding?: DecimalRounding; property 207 toBinary(significantDigits: number, rounding: DecimalRounding): string; 210 toDecimalPlaces(decimalPlaces: number, rounding: DecimalRounding): Decimal; 212 toDP(decimalPlaces: number, rounding: DecimalRounding): Decimal; 215 toExponential(decimalPlaces: number, rounding: DecimalRounding): string; 218 toFixed(decimalPlaces: number, rounding: DecimalRounding): string; 223 toHexadecimal(significantDigits: number, rounding: DecimalRounding): string; 225 toHex(significantDigits: number, rounding?: DecimalRounding): string; 229 toNearest(n: DecimalValue, rounding?: DecimalRounding): Decimal; 234 toOctal(significantDigits: number, rounding: DecimalRounding): string; [all …]
|
D | decimal.d.ts | 44 rounding?: Rounding; property 186 toBinary(significantDigits: number, rounding: Decimal.Rounding): string; 189 toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; 191 toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal; 194 toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string; 197 toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string; 202 toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string; 204 toHex(significantDigits: number, rounding?: Decimal.Rounding): string; 208 toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal; 213 toOctal(significantDigits: number, rounding: Decimal.Rounding): string; [all …]
|
D | decimal.mjs | 52 // The rounding mode used when rounding to `precision`. 65 // `Decimal.rounding = 4;` 66 // `Decimal.rounding = Decimal.ROUND_HALF_UP;` 67 rounding: 4, // 0 to 8 property 70 // The quotient (q = a / n) is calculated according to the corresponding rounding mode. 80 // division (9) are commonly used for the modulus operation. The other rounding modes can also 309 rm = Ctor.rounding; 311 Ctor.rounding = 1; 316 Ctor.rounding = rm; 325 * `precision` significant digits using rounding mode `rounding`. [all …]
|
D | decimal.js | 60 rounding: 4, // 0 to 8 property 305 rm = Ctor.rounding; 307 Ctor.rounding = 1; 312 Ctor.rounding = rm; 420 return finalise(r, e, Ctor.rounding, m); 481 return finalise(divide(x, new Ctor(y), 0, 1, 1), Ctor.precision, Ctor.rounding); 560 rm = Ctor.rounding; 562 Ctor.rounding = 1; 589 return finalise(x, Ctor.precision = pr, Ctor.rounding = rm, true); 631 rm = Ctor.rounding; [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | NumberPropertyMapper.java | 172 Precision rounding = null; in oldToNew() 174 rounding = Precision.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew() 177 rounding = Precision.constructFraction(minFrac, maxFrac); in oldToNew() 179 rounding = Precision.constructIncrement(roundingIncrement); in oldToNew() 188 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew() 190 rounding = Precision.constructFraction(minFrac, maxFrac); in oldToNew() 192 rounding = Precision.constructCurrency(currencyUsage); in oldToNew() 194 if (rounding != null) { in oldToNew() 195 rounding = rounding.withMode(mathContext); in oldToNew() 196 macros.precision = rounding; in oldToNew() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberPropertyMapper.java | 171 Precision rounding = null; in oldToNew() 173 rounding = Precision.constructCurrency(currencyUsage).withCurrency(currency); in oldToNew() 176 rounding = Precision.constructFraction(minFrac, maxFrac); in oldToNew() 181 rounding = Precision.constructIncrement(roundingIncrement); in oldToNew() 190 rounding = Precision.constructSignificant(minSig, maxSig); in oldToNew() 192 rounding = Precision.constructFraction(minFrac, maxFrac); in oldToNew() 194 rounding = Precision.constructCurrency(currencyUsage); in oldToNew() 196 if (rounding != null) { in oldToNew() 197 rounding = rounding.withMode(mathContext); in oldToNew() 198 macros.precision = rounding; in oldToNew() [all …]
|
/third_party/FreeBSD/contrib/gdtoa/ |
D | strtord.c | 73 strtord_l(s, sp, rounding, d, locale) CONST char *s; char **sp; int rounding; in strtord_l() argument 76 strtord_l(CONST char *s, char **sp, int rounding, double *d, locale_t locale) 86 if (rounding != FPI_Round_near) { 88 fpi1.rounding = rounding;
|
/third_party/python/Lib/test/decimaltestdata/ |
D | rounding.decTest | 2 -- rounding.decTest -- decimal rounding modes testcases -- 23 -- order to get correct results for some rounding modes. Rather than 24 -- single rounding tests we therefore need tests for most operators. 26 -- is rounding of negatives (if the latter works for addition, assume it 41 rounding: down 73 rounding: half_down 105 rounding: half_even 137 rounding: half_up 169 rounding: up 201 rounding: floor [all …]
|
D | tointegral.decTest | 31 rounding: half_up 166 rounding: half_up 178 -- all rounding modes 179 rounding: half_even 188 rounding: half_up 197 rounding: half_down 206 rounding: up 215 rounding: down 224 rounding: ceiling 233 rounding: floor
|
D | add.decTest | 23 rounding: half_up 238 rounding: half_up 260 rounding: half_even 286 rounding: down 310 rounding: half_up 331 rounding: half_down 341 rounding: half_up 394 rounding: half_up 403 rounding: half_down 408 rounding: half_up [all …]
|
D | ddToIntegral.decTest | 26 -- elsewhere; the tests here are for integrity, rounding mode, etc. 40 rounding: half_even 170 rounding: half_up 181 -- all rounding modes 182 rounding: half_even 190 rounding: half_up 199 rounding: half_down 208 rounding: up 217 rounding: down 226 rounding: ceiling [all …]
|
D | dqToIntegral.decTest | 26 -- elsewhere; the tests here are for integrity, rounding mode, etc. 40 rounding: half_even 170 rounding: half_up 181 -- all rounding modes 182 rounding: half_even 190 rounding: half_up 199 rounding: half_down 208 rounding: up 217 rounding: down 226 rounding: ceiling [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/resources/ohos/global/icu/dev/data/ |
D | numberpermutationtest.txt | 508 compact-short percent rounding-mode-floor 522 compact-short currency/EUR rounding-mode-floor 536 compact-short measure-unit/length-furlong rounding-mode-floor 550 scientific/+ee/sign-always percent rounding-mode-floor 564 scientific/+ee/sign-always currency/EUR rounding-mode-floor 578 scientific/+ee/sign-always measure-unit/length-furlong rounding-mode-floor 1320 compact-short unit-width-narrow rounding-mode-floor 1334 compact-short unit-width-full-name rounding-mode-floor 1348 scientific/+ee/sign-always unit-width-narrow rounding-mode-floor 1362 scientific/+ee/sign-always unit-width-full-name rounding-mode-floor [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/ |
D | numberpermutationtest.txt | 508 compact-short percent rounding-mode-floor 522 compact-short currency/EUR rounding-mode-floor 536 compact-short measure-unit/length-furlong rounding-mode-floor 550 scientific/+ee/sign-always percent rounding-mode-floor 564 scientific/+ee/sign-always currency/EUR rounding-mode-floor 578 scientific/+ee/sign-always measure-unit/length-furlong rounding-mode-floor 1320 compact-short unit-width-narrow rounding-mode-floor 1334 compact-short unit-width-full-name rounding-mode-floor 1348 scientific/+ee/sign-always unit-width-narrow rounding-mode-floor 1362 scientific/+ee/sign-always unit-width-full-name rounding-mode-floor [all …]
|
/third_party/icu/icu4c/source/test/testdata/ |
D | numberpermutationtest.txt | 508 compact-short percent rounding-mode-floor 522 compact-short currency/EUR rounding-mode-floor 536 compact-short measure-unit/length-furlong rounding-mode-floor 550 scientific/+ee/sign-always percent rounding-mode-floor 564 scientific/+ee/sign-always currency/EUR rounding-mode-floor 578 scientific/+ee/sign-always measure-unit/length-furlong rounding-mode-floor 1320 compact-short unit-width-narrow rounding-mode-floor 1334 compact-short unit-width-full-name rounding-mode-floor 1348 scientific/+ee/sign-always unit-width-narrow rounding-mode-floor 1362 scientific/+ee/sign-always unit-width-full-name rounding-mode-floor [all …]
|
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
D | yuv.h | 186 static WEBP_INLINE int VP8ClipUV(int uv, int rounding) { in VP8ClipUV() argument 187 uv = (uv + rounding + (128 << (YUV_FIX + 2))) >> (YUV_FIX + 2); in VP8ClipUV() 191 static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) { in VP8RGBToY() argument 193 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip in VP8RGBToY() 196 static WEBP_INLINE int VP8RGBToU(int r, int g, int b, int rounding) { in VP8RGBToU() argument 198 return VP8ClipUV(u, rounding); in VP8RGBToU() 201 static WEBP_INLINE int VP8RGBToV(int r, int g, int b, int rounding) { in VP8RGBToV() argument 203 return VP8ClipUV(v, rounding); in VP8RGBToV()
|
/third_party/icu/docs/userguide/format_parse/numbers/ |
D | rounding-modes.md | 24 The following rounding modes are used with ICU's Decimal Formatter. Note that 82 This is ICU's default rounding mode. Values exactly on the 0.5 (half) mark 119 This is the default rounding mode in ECMAScript. In CSS, it is known as "nearest". 137 The mode "Unnecessary" doesn't perform any rounding, but instead returns an 138 error if the value cannot be represented exactly without rounding. 142 * Decimal Context docs (used by ICU4C to implement rounding): 143 <http://speleotrove.com/decimal/decifaq1.html#rounding> 146 * IEEE 754 rounding rules: 150 * Live rounding mode chart: [Rounding Mode
|
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/number/ |
D | CurrencyDemo.java | 50 result.setRoundingIncrement(hack.rounding); in getCurrencyFormat() 60 double rounding; field in CurrencyDemo.HackCurrencyInfo 62 HackCurrencyInfo(int decimals, double rounding, String symbol) { in HackCurrencyInfo() argument 64 this.rounding = rounding; in HackCurrencyInfo()
|