Lines Matching refs:dq
420 DecimalQuantity dq; in testMaxDigits() local
421 dq.setToDouble(876.543); in testMaxDigits()
422 dq.roundToInfinity(); in testMaxDigits()
423 dq.setMinInteger(0); in testMaxDigits()
424 dq.applyMaxInteger(2); in testMaxDigits()
425 dq.setMinFraction(0); in testMaxDigits()
426 dq.roundToMagnitude(-2, UNUM_ROUND_FLOOR, status); in testMaxDigits()
427 assertEquals("Should trim, toPlainString", "76.54", dq.toPlainString()); in testMaxDigits()
428 assertEquals("Should trim, toScientificString", "7.654E+1", dq.toScientificString()); in testMaxDigits()
429 assertEquals("Should trim, toLong", 76LL, dq.toLong(true)); in testMaxDigits()
430 assertEquals("Should trim, toFractionLong", (int64_t) 54, (int64_t) dq.toFractionLong(false)); in testMaxDigits()
431 assertEquals("Should trim, toDouble", 76.54, dq.toDouble()); in testMaxDigits()
434 dq.toDecNum(dn, status); in testMaxDigits()
506 DecimalQuantity dq; in testNickelRounding() local
507 dq.setToDouble(cas.input); in testNickelRounding()
508 dq.roundToNickel(cas.magnitude, cas.roundingMode, status); in testNickelRounding()
510 UnicodeString actual = dq.toPlainString(); in testNickelRounding()
514 DecimalQuantity dq; in testNickelRounding() local
515 dq.setToDouble(7.1); in testNickelRounding()
516 dq.roundToNickel(-1, UNUM_ROUND_UNNECESSARY, status); in testNickelRounding()
589 DecimalQuantity dq; in testScientificAndCompactSuppressedExponent() local
590 fn.getDecimalQuantity(dq, status); in testScientificAndCompactSuppressedExponent()
592 int64_t actualLong = dq.toLong(); in testScientificAndCompactSuppressedExponent()
593 double actualDouble = dq.toDouble(); in testScientificAndCompactSuppressedExponent()
594 UnicodeString actualPlainString = dq.toPlainString(); in testScientificAndCompactSuppressedExponent()
595 int32_t actualSuppressedScientificExponent = dq.getExponent(); in testScientificAndCompactSuppressedExponent()
596 int32_t actualSuppressedCompactExponent = dq.getExponent(); in testScientificAndCompactSuppressedExponent()
629 double actualNOperand = dq.getPluralOperand(PLURAL_OPERAND_N); in testScientificAndCompactSuppressedExponent()
630 double actualIOperand = dq.getPluralOperand(PLURAL_OPERAND_I); in testScientificAndCompactSuppressedExponent()
631 double actualEOperand = dq.getPluralOperand(PLURAL_OPERAND_E); in testScientificAndCompactSuppressedExponent()
632 double actualCOperand = dq.getPluralOperand(PLURAL_OPERAND_C); in testScientificAndCompactSuppressedExponent()