| Constructor and Description |
|---|
NSReal(double theDouble)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getValue()
Get the unmodifiable value of this object.
|
byte[] |
toBytes()
Get the raw data of the value.
|
double |
toDouble()
Get the contents of this object as a
double. |
long |
toLong()
Return the value as a long.
|
java.lang.Double |
toNumber()
Get the contents of this object as a
Number. |
createInstance, isTrueequals, fromObject, hashCode, toBoolean, toDate, toInteger, toList, toListObject, toMap, toMapObject, toObject, toStream, toStringpublic NSReal(double theDouble)
theDouble - value of the new objectpublic java.lang.Double getValue()
getValue in class NSNumbertoDouble()public double toDouble()
double.public java.lang.Double toNumber()
Number.public long toLong()
NSInteger
the long value is derived from the actual value.