All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spun.util.parser.CurrencyAmount Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show newest version
package com.spun.util.parser;

public class CurrencyAmount extends TemplateDouble
{
  public CurrencyAmount(double amount)
  {
    super(amount, "$", "", 2, 2);
  }
  public String toString()
  {
    return inFormat("$", 2, 2, null, true);
  }
  public static String inDefaultFormat(double d)
  {
    return inFormat(d, "$", 2, 2, null, true);
  }
  public String withoutCents()
  {
    return inFormat("$", 0, 0, null, true);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy