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

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ImageIO (javax.imageio)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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