Thanks to visit codestin.com
Credit goes to www.tutorialspoint.com

Java BigDecimalLayoutForm Enumeration



Introduction

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>

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