java.util.Formatter.BigDecimalLayoutForm Enumeration


Advertisements

Introduction

The java.util.Formatter.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>

Constants

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
1

static Formatter.BigDecimalLayoutForm valueOf(String name)

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

2

static Formatter.BigDecimalLayoutForm[] values()

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

Advertisements