Java BigDecimal ZERO

Syntax

BigDecimal.ZERO has the following syntax.

public static final BigDecimal ZERO

Example

In the following code shows how to use BigDecimal.ZERO field.


//from  w  w  w .  ja va2s  .  c  o  m
import java.math.BigDecimal;

public class Main {

  public static void main(String[] args) {

    System.out.println(BigDecimal.ZERO);
  }
}

The code above generates the following result.





















Home »
  Java Tutorial »
    java.math »




BigDecimal
BigInteger