Available Methods
Related Classes
- java.util.Arrays
- java.util.Date
- java.util.Iterator
- java.util.Locale
- java.io.ByteArrayOutputStream
- java.io.ByteArrayInputStream
- java.text.ParseException
- java.util.TreeSet
- org.junit.Ignore
- java.io.ObjectInputStream
- java.io.ObjectOutputStream
- org.xml.sax.SAXException
- java.text.ParsePosition
- java.text.Format
- java.text.FieldPosition
- java.io.InvalidObjectException
- android.icu.text.DateFormat
- android.icu.util.Calendar
- android.icu.text.DecimalFormatSymbols
- android.icu.text.DisplayContext
Java Code Examples for android.icu.text.NumberFormat#setMinimumIntegerDigits()
The following examples show how to use
android.icu.text.NumberFormat#setMinimumIntegerDigits() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NumberFormatSpecificationTest.java From j2objc with Apache License 2.0 | 5 votes |
@Test public void TestNfSetters() { NumberFormat nf = nfWithPattern("#,##0.##"); nf.setMaximumIntegerDigits(5); nf.setMinimumIntegerDigits(4); assertEquals("", "34 567,89", format(1234567.89, nf)); assertEquals("", "0 034,56", format(34.56, nf)); }