public class SassNumber extends Number implements SassValue
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE |
| Constructor and Description |
|---|
SassNumber(double value,
String unit)
Create a new number.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue() |
float |
floatValue() |
String |
getUnit()
Return the unit.
|
double |
getValue()
Return the numeric value.
|
int |
intValue() |
long |
longValue() |
void |
setUnit(String unit)
Set the unit.
|
void |
setValue(double value)
Set the numeric value.
|
String |
toString() |
byteValue, shortValuepublic static final int TYPE
public SassNumber(double value,
String unit)
value - The numeric value.unit - The unit.public double getValue()
public void setValue(double value)
value - The numeric value.public String getUnit()
public void setUnit(String unit)
unit - The unit.public float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class NumberCopyright © 2016 bit3. All rights reserved.