break;
default:
patternKey = "decimalFormat"; // silence compiler error
- U_ASSERT(false);
+ UPRV_UNREACHABLE;
}
LocalUResourceBundlePointer res(ures_open(nullptr, locale.getName(), &status));
if (U_FAILURE(status)) { return u""; }
void DecNum::divideBy(const DecNum& rhs, UErrorCode& status) {
uprv_decNumberDivide(fData, fData, rhs.fData, &fContext);
- if (fContext.status != 0) {
+ if ((fContext.status & DEC_Inexact) != 0) {
+ // Ignore.
+ } else if (fContext.status != 0) {
status = U_INTERNAL_PROGRAM_ERROR;
}
}