Esempio n. 1
0
 /**
  * Returns the value as a plain string. The result is unformatted with no trailing zeroes. For
  * instance, a value of 150000 "smallest units" gives an output string of "0.0015".
  */
 public String toPlainString() {
   return PLAIN_FORMAT.format(this).toString();
 }
Esempio n. 2
0
 /**
  * Returns the value as a 0.12 type string. More digits after the decimal place will be used if
  * necessary, but two will always be present.
  */
 public String toFriendlyString() {
   return FRIENDLY_FORMAT.code(0, currencyCode).format(this).toString();
 }