DecimalFormat setPositiveSuffix() method in Java Last Updated : 01 Apr, 2019 Comments Improve Suggest changes Like Article Like Report The setPositiveSuffix() method of the DecimalFormat class in Java is used to set a positive suffix value for this DecimalFormat instance. Syntax: public void setPositiveSuffix(String newValue) Parameters: This method a single parameter newValue which is the new value to be set as a positive suffix for this DecimalFormat instance. Return Value: This method does not returns any value. Below program illustrate the above method: Java // Java program to illustrate the // setPositiveSuffix() method import java.text.DecimalFormat; public class GFG { public static void main(String[] args) { // Create a DecimalFormat instance DecimalFormat deciFormat = new DecimalFormat(); // Set a positive suffix value deciFormat.setPositiveSuffix("positive"); // Print a number with positive suffix System.out.println(deciFormat.format(12345)); } } Output: 12, 345positive Reference: https://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html#setPositiveSuffix(java.lang.String) Comment More infoAdvertise with us Next Article DecimalFormat setPositiveSuffix() method in Java gopaldave Follow Improve Article Tags : Java Java-Functions Java-text package Java-DecimalFormat Practice Tags : Java Similar Reads DecimalFormat setPositivePrefix() method in Java The setPositivePrefix() method of the DecimalFormat class in Java is used to set a positive prefix value for this DecimalFormat instance. Syntax: public void setPositivePrefix(String newValue) Parameters: This method a single parameter newValue which is the new value to be set as a positive prefix f 1 min read DecimalFormat setNegativeSuffix() method in Java The setNegativeSuffix() method of the DecimalFormat class in Java is used to set a negative suffix value for this DecimalFormat instance. Syntax: public void setNegativeSuffix(String newValue) Parameters: This method a single parameter newValue which is the new value to be set as a negative suffix f 1 min read DecimalFormat setNegativePrefix() method in Java The setNegativePrefix() method of the DecimalFormat class in Java is used to set a negative value of this DecimalFormat instance. Syntax: public void setNegativePrefix(String newValue) Parameters: This method a single parameter newValue which is the new value to be set as a negative prefix for this 1 min read DecimalFormat setMultiplier() method in Java The setMultiplier() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to a multiplier value to be used with this DecimalFormat instance. This multiplier value can be used while working with percent, percentile etc. For Example, for a multiplier value 10, the number 1 min read DecimalFormat setParseBigDecimal() method in Java The setParseBigDecimal() method of the DecimalFormat class in Java is used to set whether the parse() method of the DecimalFormat class will return a value of BigInteger type or not. If this method is set true, then the parse() method will return a BigDecimal value. Syntax: public void setParseBigDe 1 min read DecimalFormat setGroupingSize() method in Java The setGroupingSize() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the grouping size for this DecimalFormat instance or not. The grouping size is the number of integers in each group in the integral part of a decimal number. For example, the grouping si 2 min read DecimalFormat toPattern() method in Java The toPattern() method of the DecimalFormat class in Java is used to convert the format of the current pattern of this DecimalFormat to a string format. This converted string represents the pattern which is used to format the current state of this DecimalFormat instance. Syntax: public String toPatt 2 min read DecimalFormat setRoundingMode() method in Java The setRoundingMode() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the RoundingMode to be used with this DecimalFormat instance to round-off the decimal digits. Syntax: public void setRoundingMode(RoundingMode roundingMode) Parameters: The function acce 1 min read DecimalFormat setCurrency() method in Java The setCurrency() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the Currency for this DecimalFormat instance which will be used to formatting numbers. Syntax: public void setCurrency(Currency currency) Parameters: The function accepts a single parameter 1 min read DecimalFormat setMinimumFractionDigits() method in Java The setMinimumFractionDigits() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the minimum number of digits allowed in the fractional part of a number. The fractional part of a number is the part displayed after the decimal(.) symbol. Syntax: public void s 1 min read Like