Java BigDecimalLayoutForm Enumeration


The Java BigDecimalLayoutForm enumeration gives the available styles for formatting very large decimal numbers.

Enum declaration

Following is the declaration for java.util.Formatter.BigDecimalLayoutForm enum −

public static enum Formatter.BigDecimalLayoutForm
   extends Enum<Formatter.BigDecimalLayoutForm>


Following are the constants for java.util.Formatter.BigDecimalLayoutForm enum −

  • DECIMAL_FLOAT − Use normal decimal/float style for BigDecimals.

  • SCIENTIFIC − Use scientific style for BigDecimals.

Enum methods

Sr.No. Method & Description

static Formatter.BigDecimalLayoutForm valueOf(String name)

This method returns the enum constant of this type with the specified name.


static Formatter.BigDecimalLayoutForm[] values()

This method returns an array containing the constants of this enum type, in the order they are declared.