Decimal value with sign.
PUBLIC METHODS
Double decimals(Integer precision)
It limits the number of decimals to a desired accuracy.
| Arguments | |
|---|---|
| precision | Integer number of decimals. |
| Return | |
|---|---|
| Double | New double with accuracy. |
Integer round()
It rounds up the Double value to the closest integer number.
| Return | |
|---|---|
| Integer | New whole value. |
Integer floor()
It returns the last lower integer to the double value.
| Return | |
|---|---|
| Integer | New whole calculated value. |
Double abs()
It calculates the absolute value of the Double and returns it without a sign.
| Return | |
|---|---|
| Double | Absolute value of the Double assigned. |
String toString()
It converts the Double value to string and returns it
| Return | |
|---|---|
| String | Value of the Double as String. |
