Example usage for java.text DecimalFormat getRoundingMode

List of usage examples for java.text DecimalFormat getRoundingMode

Introduction

In this page you can find the example usage for java.text DecimalFormat getRoundingMode.

Prototype

@Override
public RoundingMode getRoundingMode() 

Source Link

Document

Gets the java.math.RoundingMode used in this DecimalFormat.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    DecimalFormat format = new DecimalFormat();

    System.out.println(format.getRoundingMode().name());

}