public class Rate extends Object
Constructor | Description |
---|---|
Rate(double v) |
Modifier and Type | Method | Description |
---|---|---|
static Rate |
NaN() |
|
String |
percent(int decimals) |
Formats the rate as percentage with
decimals number of decimals. |
String |
perMille(int decimals) |
Formats the rate as per mille with
decimals number of decimals. |
String |
toString() |
|
double |
value() |
public static Rate NaN()
public String percent(int decimals)
decimals
number of decimals.decimals
- The number of decimals to use when the rate is formatted.public String perMille(int decimals)
decimals
number of decimals.decimals
- The number of decimals to use when the rate is formatted.public double value()
Copyright © 2020 Apptus Technologies AB. All rights reserved.