mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-3542 uprv_digitsAfterDecimal isn't used. Comment it out for now.
X-SVN-Rev: 15235
This commit is contained in:
parent
99c1ba64fb
commit
fef83bf1ee
3 changed files with 8 additions and 1 deletions
|
@ -615,6 +615,8 @@ uprv_log(double d)
|
|||
return log(d);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* This isn't used. If it's readded, readd putiltst.c tests */
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
uprv_digitsAfterDecimal(double x)
|
||||
{
|
||||
|
@ -657,6 +659,7 @@ uprv_digitsAfterDecimal(double x)
|
|||
}
|
||||
return numDigits;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*---------------------------------------------------------------------------
|
||||
Platform-specific Implementations
|
||||
|
|
|
@ -174,6 +174,7 @@ U_STABLE double U_EXPORT2 uprv_log(double d);
|
|||
*/
|
||||
U_STABLE double U_EXPORT2 uprv_round(double x);
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* Returns the number of digits after the decimal point in a double number x.
|
||||
*
|
||||
|
@ -181,7 +182,8 @@ U_STABLE double U_EXPORT2 uprv_round(double x);
|
|||
* @return the number of digits after the decimal point in a double number x.
|
||||
* @internal
|
||||
*/
|
||||
U_STABLE int32_t U_EXPORT2 uprv_digitsAfterDecimal(double x);
|
||||
/*U_STABLE int32_t U_EXPORT2 uprv_digitsAfterDecimal(double x);*/
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Time zone utilities
|
||||
|
|
|
@ -112,6 +112,7 @@ static void TestPUtilAPI(void){
|
|||
log_err("ERROR: uprv_isInfinite failed.\n");
|
||||
}
|
||||
|
||||
#if 0
|
||||
log_verbose("Testing the API uprv_digitsAfterDecimal()....\n");
|
||||
doAssert(uprv_digitsAfterDecimal(value1), 3, "uprv_digitsAfterDecimal() failed.");
|
||||
doAssert(uprv_digitsAfterDecimal(1.2345E2), 2, "uprv_digitsAfterDecimal(1.2345E2) failed.");
|
||||
|
@ -122,6 +123,7 @@ static void TestPUtilAPI(void){
|
|||
doAssert(uprv_digitsAfterDecimal(-0.021), 3, "uprv_digitsAfterDecimal(-0.021) failed.");
|
||||
doAssert(uprv_digitsAfterDecimal(23.0), 0, "uprv_digitsAfterDecimal(23.0) failed.");
|
||||
doAssert(uprv_digitsAfterDecimal(0.022223333321), 9, "uprv_digitsAfterDecimal(0.022223333321) failed.");
|
||||
#endif
|
||||
|
||||
|
||||
log_verbose("Testing the API u_versionToString().....\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue