Example usage for java.text DecimalFormat setPositiveSuffix

List of usage examples for java.text DecimalFormat setPositiveSuffix

Introduction

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

Prototype

public void setPositiveSuffix(String newValue) 

Source Link

Document

Set the positive suffix.

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    DecimalFormat format = new DecimalFormat();
    format.setPositiveSuffix("Positive");
    System.out.println(format.format(123456789.12345678));

}