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