public class Double extends AbstractFloat implements ValueType:
Represents a 64-bit IEEE 754 floating-point number.
Double is the default floating-point type used by Klyn for decimal literals without the f suffix. It supports arithmetic, comparison and explicit conversions from the primitive scalar types.
@example `klyn value = 3.5 other = Double("2.25") assert value + other == 5.75
@since 1.0
| Modifier and Type | Member | Description |
|---|---|---|
| public native | DoubleDouble() |
Builds the neutral Double value (`0. |
| public native | Double | Builds a Double from a Boolean value. |
| public native | Double | Builds a Double from a character code point. |
| public native | Double | Copy constructor. |
| public native | Double | Builds a Double from a Float value. |
| public native | Double | Builds a Double from an Int value. |
| public native | Double | Builds a Double from a Long value. |
| public native | DoubleDouble(value: String) throws BadValueException |
Parses a Double from a textual representation. |
| public native | Double | Builds a Double from a UInt value. |
| public native | Double | Builds a Double from a ULong value. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | toStringtoString() as String: |
Converts this value to its textual representation. |