public class RatioValue
extends java.lang.Object
Constructor and Description |
---|
RatioValue(double percent) |
Modifier and Type | Method and Description |
---|---|
double |
getAsPercent() |
double |
getAsRatio() |
static RatioValue |
parseRatioValue(java.lang.String sValue)
Parses the provided string as a
RatioValue , the string can
either be in percentage format (eg. |
java.lang.String |
toString() |
public double getAsRatio()
public double getAsPercent()
public java.lang.String toString()
toString
in class java.lang.Object
public static RatioValue parseRatioValue(java.lang.String sValue)
RatioValue
, the string can
either be in percentage format (eg. 73.5%), or a floating-point ratio
format (eg. 0.735)