Java Data Type Tutorial - 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 www  .jav a2s .  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.