Tabnine Logo
NativeDecimalFormat.formatBigDecimal
Code IndexAdd Tabnine to your IDE (free)

How to use
formatBigDecimal
method
in
libcore.icu.NativeDecimalFormat

Best Java code snippets using libcore.icu.NativeDecimalFormat.formatBigDecimal (Showing top 20 results out of 315)

origin: robovm/robovm

@Override
public final StringBuffer format(Object number, StringBuffer buffer, FieldPosition position) {
  checkBufferAndFieldPosition(buffer, position);
  if (number instanceof BigInteger) {
    BigInteger bigInteger = (BigInteger) number;
    char[] chars = (bigInteger.bitLength() < 64)
        ? ndf.formatLong(bigInteger.longValue(), position)
        : ndf.formatBigInteger(bigInteger, position);
    buffer.append(chars);
    return buffer;
  } else if (number instanceof BigDecimal) {
    buffer.append(ndf.formatBigDecimal((BigDecimal) number, position));
    return buffer;
  }
  return super.format(number, buffer, position);
}
origin: robovm/robovm

  result.append(nf.formatBigDecimal((BigDecimal) arg, null));
} else {
  result.append(nf.formatDouble(((Number) arg).doubleValue(), null));
origin: robovm/robovm

char[] chars;
if (arg instanceof BigDecimal) {
  chars = nf.formatBigDecimal((BigDecimal) arg, null);
} else {
  chars = nf.formatDouble(((Number) arg).doubleValue(), null);
origin: MobiVM/robovm

@Override
public final StringBuffer format(Object number, StringBuffer buffer, FieldPosition position) {
  checkBufferAndFieldPosition(buffer, position);
  if (number instanceof BigInteger) {
    BigInteger bigInteger = (BigInteger) number;
    char[] chars = (bigInteger.bitLength() < 64)
        ? ndf.formatLong(bigInteger.longValue(), position)
        : ndf.formatBigInteger(bigInteger, position);
    buffer.append(chars);
    return buffer;
  } else if (number instanceof BigDecimal) {
    buffer.append(ndf.formatBigDecimal((BigDecimal) number, position));
    return buffer;
  }
  return super.format(number, buffer, position);
}
origin: FlexoVM/flexovm

@Override
public final StringBuffer format(Object number, StringBuffer buffer, FieldPosition position) {
  checkBufferAndFieldPosition(buffer, position);
  if (number instanceof BigInteger) {
    BigInteger bigInteger = (BigInteger) number;
    char[] chars = (bigInteger.bitLength() < 64)
        ? ndf.formatLong(bigInteger.longValue(), position)
        : ndf.formatBigInteger(bigInteger, position);
    buffer.append(chars);
    return buffer;
  } else if (number instanceof BigDecimal) {
    buffer.append(ndf.formatBigDecimal((BigDecimal) number, position));
    return buffer;
  }
  return super.format(number, buffer, position);
}
origin: ibinti/bugvm

@Override
public final StringBuffer format(Object number, StringBuffer buffer, FieldPosition position) {
  checkBufferAndFieldPosition(buffer, position);
  if (number instanceof BigInteger) {
    BigInteger bigInteger = (BigInteger) number;
    char[] chars = (bigInteger.bitLength() < 64)
        ? ndf.formatLong(bigInteger.longValue(), position)
        : ndf.formatBigInteger(bigInteger, position);
    buffer.append(chars);
    return buffer;
  } else if (number instanceof BigDecimal) {
    buffer.append(ndf.formatBigDecimal((BigDecimal) number, position));
    return buffer;
  }
  return super.format(number, buffer, position);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override
public final StringBuffer format(Object number, StringBuffer buffer, FieldPosition position) {
  checkBufferAndFieldPosition(buffer, position);
  if (number instanceof BigInteger) {
    BigInteger bigInteger = (BigInteger) number;
    char[] chars = (bigInteger.bitLength() < 64)
        ? ndf.formatLong(bigInteger.longValue(), position)
        : ndf.formatBigInteger(bigInteger, position);
    buffer.append(chars);
    return buffer;
  } else if (number instanceof BigDecimal) {
    buffer.append(ndf.formatBigDecimal((BigDecimal) number, position));
    return buffer;
  }
  return super.format(number, buffer, position);
}
origin: com.bugvm/bugvm-rt

@Override
public final StringBuffer format(Object number, StringBuffer buffer, FieldPosition position) {
  checkBufferAndFieldPosition(buffer, position);
  if (number instanceof BigInteger) {
    BigInteger bigInteger = (BigInteger) number;
    char[] chars = (bigInteger.bitLength() < 64)
        ? ndf.formatLong(bigInteger.longValue(), position)
        : ndf.formatBigInteger(bigInteger, position);
    buffer.append(chars);
    return buffer;
  } else if (number instanceof BigDecimal) {
    buffer.append(ndf.formatBigDecimal((BigDecimal) number, position));
    return buffer;
  }
  return super.format(number, buffer, position);
}
origin: com.gluonhq/robovm-rt

@Override
public final StringBuffer format(Object number, StringBuffer buffer, FieldPosition position) {
  checkBufferAndFieldPosition(buffer, position);
  if (number instanceof BigInteger) {
    BigInteger bigInteger = (BigInteger) number;
    char[] chars = (bigInteger.bitLength() < 64)
        ? ndf.formatLong(bigInteger.longValue(), position)
        : ndf.formatBigInteger(bigInteger, position);
    buffer.append(chars);
    return buffer;
  } else if (number instanceof BigDecimal) {
    buffer.append(ndf.formatBigDecimal((BigDecimal) number, position));
    return buffer;
  }
  return super.format(number, buffer, position);
}
origin: ibinti/bugvm

char[] chars;
if (arg instanceof BigDecimal) {
  chars = nf.formatBigDecimal((BigDecimal) arg, null);
} else {
  chars = nf.formatDouble(((Number) arg).doubleValue(), null);
origin: ibinti/bugvm

  result.append(nf.formatBigDecimal((BigDecimal) arg, null));
} else {
  result.append(nf.formatDouble(((Number) arg).doubleValue(), null));
origin: com.mobidevelop.robovm/robovm-rt

char[] chars;
if (arg instanceof BigDecimal) {
  chars = nf.formatBigDecimal((BigDecimal) arg, null);
} else {
  chars = nf.formatDouble(((Number) arg).doubleValue(), null);
origin: MobiVM/robovm

char[] chars;
if (arg instanceof BigDecimal) {
  chars = nf.formatBigDecimal((BigDecimal) arg, null);
} else {
  chars = nf.formatDouble(((Number) arg).doubleValue(), null);
origin: FlexoVM/flexovm

  result.append(nf.formatBigDecimal((BigDecimal) arg, null));
} else {
  result.append(nf.formatDouble(((Number) arg).doubleValue(), null));
origin: com.bugvm/bugvm-rt

char[] chars;
if (arg instanceof BigDecimal) {
  chars = nf.formatBigDecimal((BigDecimal) arg, null);
} else {
  chars = nf.formatDouble(((Number) arg).doubleValue(), null);
origin: com.gluonhq/robovm-rt

char[] chars;
if (arg instanceof BigDecimal) {
  chars = nf.formatBigDecimal((BigDecimal) arg, null);
} else {
  chars = nf.formatDouble(((Number) arg).doubleValue(), null);
origin: MobiVM/robovm

  result.append(nf.formatBigDecimal((BigDecimal) arg, null));
} else {
  result.append(nf.formatDouble(((Number) arg).doubleValue(), null));
origin: com.mobidevelop.robovm/robovm-rt

  result.append(nf.formatBigDecimal((BigDecimal) arg, null));
} else {
  result.append(nf.formatDouble(((Number) arg).doubleValue(), null));
origin: com.bugvm/bugvm-rt

  result.append(nf.formatBigDecimal((BigDecimal) arg, null));
} else {
  result.append(nf.formatDouble(((Number) arg).doubleValue(), null));
origin: com.gluonhq/robovm-rt

  result.append(nf.formatBigDecimal((BigDecimal) arg, null));
} else {
  result.append(nf.formatDouble(((Number) arg).doubleValue(), null));
libcore.icuNativeDecimalFormatformatBigDecimal

Popular methods of NativeDecimalFormat

  • <init>
  • applyLocalizedPattern
  • applyPattern
  • applyPatternImpl
  • clone
  • cloneImpl
  • close
  • equals
    Note: this doesn't check that the underlying native DecimalFormat objects' configured native Decimal
  • formatBigInteger
  • formatDigitList
  • formatDouble
  • formatLong
  • formatDouble,
  • formatLong,
  • formatToCharacterIterator,
  • getAttribute,
  • getGroupingSize,
  • getMaximumFractionDigits,
  • getMaximumIntegerDigits,
  • getMinimumFractionDigits,
  • getMinimumIntegerDigits

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now