/libcore/luni/src/main/java/java/util/ |
Formattable.java | 49 * @param precision 52 * before the width padding is applied. If the precision 57 void formatTo(Formatter formatter, int flags, int width, int precision)
|
Formatter.java | 53 * argument index, optional flags, an optional width, an optional precision, and a mandatory 55 * In the example, {@code "%s"} has no flags, no width, and no precision, while 56 * {@code "%03d"} has the flag {@code 0}, the width 3, and no precision. 58 * Not all combinations of argument index, flags, width, precision, and conversion type 121 * truncate a field, only to make it wider: see precision for control over the maximum width. 123 * <i>Precision</i>. The precision is a {@code .} followed by a decimal integer, giving the minimum 1182 private int precision = UNSET; field in class:Formatter.FormatToken 1657 int precision = formatToken.getPrecision(); local 2138 final int precision = formatToken.getPrecision(); local 2171 int precision = formatToken.getPrecision(); local [all...] |
/external/astl/include/ |
iomanip | 47 struct SetPrecision { int precision; }; 52 // Sent to a stream, calls 'precision(size_type)' on the instance. 53 inline android::SetPrecision setprecision(int precision) { 55 params.precision = precision; 60 os.precision(params.precision); 65 // Sent to a stream, calls 'precision(size_type)' on the instance.
|
ios_base.h | 184 // PRECISION and WIDTH 187 * @return The precision (number of digits after the decimal 190 streamsize precision() const { return mPrecision; } function in class:std::ios_base 193 * @param precision The new precision value. Values < 0 are ignored. 194 * @return The previous value of precision(). 0 by default; 196 streamsize precision(streamsize precision);
|
/libcore/luni/src/main/java/java/math/ |
MathContext.java | 27 * precision for the numerical operations provided by class {@link BigDecimal}. 33 * decimal precision format: 34 digit precision and 41 * precision format: 7 digit precision and {@link RoundingMode#HALF_EVEN} 49 * precision format: 16 digit precision and {@link RoundingMode#HALF_EVEN} 56 * A {@code MathContext} for unlimited precision with 67 * this precision. 69 private int precision; field in class:MathContext [all...] |
/external/astl/tests/ |
test_iostream.cpp | 43 mPassed = std::cout.precision() == 6; 56 EXPECT_TRUE(std::cout.precision() == 6); 57 EXPECT_TRUE(std::cerr.precision() == 6); 59 std::cout.precision(20); 60 std::cerr.precision(20); 62 EXPECT_TRUE(std::cout.precision() == 20); 63 EXPECT_TRUE(std::cerr.precision() == 20); 65 std::cout.precision(6); 66 std::cerr.precision(6); 96 cout.precision(std::numeric_limits<double>::digits10) [all...] |
test_ios_base.cpp | 43 EXPECT_TRUE(s.precision() == 6); 49 EXPECT_TRUE(s.precision(10) == 6); 50 EXPECT_TRUE(s.precision() == 10); 51 EXPECT_TRUE(s.precision(-1) == 10); // no-op 52 EXPECT_TRUE(s.precision() == 10);
|
test_iomanip.cpp | 45 EXPECT_TRUE(s.precision() == 6); 47 EXPECT_TRUE(s.precision() == 20);
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/ |
IllegalFormatPrecisionExceptionTest.java | 42 int precision = 12345; local 44 precision); 45 assertEquals(precision, illegalFormatPrecisionException.getPrecision()); 52 int precision = 12345; local 54 precision); 70 assertEquals("Precision", initEx.getPrecision(), desrEx
|
/external/astl/src/ |
ios_base.cpp | 75 streamsize ios_base::precision(streamsize precision) { function in class:std::ios_base 77 if (precision >= 0) { // Not sure what a negative precision would mean. 78 mPrecision = precision;
|
ostream.cpp | 108 int size = snprintf(buf, kNumSize, fmt, precision(), val); 115 int size = snprintf(buf, kNumSize, fmt, precision(), val);
|
/external/bluetooth/glib/glib/gnulib/ |
vasnprintf.c | 83 int precision, 151 /* Adjust precision */ 152 if (precision != -1) 154 precision -= (bufferend - pointer) - 1; 155 if (precision < 0) 156 precision = 0; 180 ((flags & FLAG_ZERO) && (precision == -1)))) 182 count = (precision == -1) ? 0 : precision; 220 if (precision == -1 392 unsigned int precision; local 848 int precision; local [all...] |
/external/stlport/src/ |
num_put_float.cpp | 402 // If long double value can be safely converted to double without losing precision 442 // If long double value can be safely converted to double without losing precision 480 // according to the specified precision and format flags. This is 489 int precision) { 505 if (precision != 0 || flags & ios_base::showpoint) { 510 while (*bp != 0 && precision--) 514 if (precision > 0) 515 buf.append(precision, '0'); 552 int precision) { 553 if ( sign && (decpt > -precision) && (*bp != 0) 760 snprintf(_STLP_ARRAY_AND_SIZE(static_buf), fmtbuf, precision, x); local [all...] |
/ndk/sources/android/stlport/src/ |
num_put_float.cpp | 402 // If long double value can be safely converted to double without losing precision 442 // If long double value can be safely converted to double without losing precision 480 // according to the specified precision and format flags. This is 489 int precision) { 505 if (precision != 0 || flags & ios_base::showpoint) { 510 while (*bp != 0 && precision--) 514 if (precision > 0) 515 buf.append(precision, '0'); 552 int precision) { 553 if ( sign && (decpt > -precision) && (*bp != 0) 760 snprintf(_STLP_ARRAY_AND_SIZE(static_buf), fmtbuf, precision, x); local [all...] |
/libcore/luni/src/test/java/libcore/java/math/ |
BigDecimalTest.java | 45 // test these special cases because we know precision() uses longs internally 54 assertEquals("Unexpected precision for parsed value " + value, 55 expectedPrecision, parsed.precision()); 58 assertEquals("Unexpected precision for computed value " + value, 59 expectedPrecision, computed.precision());
|
OldBigDecimalScaleOperationsTest.java | 89 x1.precision(); 94 x2.precision();
|
/external/qemu/distrib/sdl-1.2.12/src/audio/bsd/ |
SDL_bsdaudio.c | 260 "precision : %i-bit\n" 273 info.play.precision, 339 info.play.precision = 8; 343 info.play.precision = 8; 347 info.play.precision = 16; 351 info.play.precision = 16; 355 info.play.precision = 16; 359 info.play.precision = 16;
|
/external/tcpdump/ |
ntp.h | 44 * |LI | VN |Mode | Stratum | Poll | Precision | 82 int precision:8; member in struct:ntpdata
|
/external/e2fsprogs/intl/ |
vasnprintf.c | 278 size_t precision; local 302 precision = 6; 312 precision = (arg < 0 ? 0 : arg); 318 precision = 0; 320 precision = xsum (xtimes (precision, 10), *digitp++ - '0'); 431 tmp_length = xsum (tmp_length, precision); 438 tmp_length = xsum (tmp_length, precision);
|
/bionic/libc/kernel/common/linux/ |
timex.h | 44 long precision; member in struct:timex
|
/development/ndk/platforms/android-3/include/linux/ |
timex.h | 44 long precision; member in struct:timex
|
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/ |
timex.h | 44 long precision; member in struct:timex
|
/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/ |
timex.h | 44 long precision; member in struct:timex
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/ |
timex.h | 44 long precision; member in struct:timex
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/linux/ |
timex.h | 44 long precision; member in struct:timex
|