Double
class in package klyn

    public class Double extends AbstractFloat implements ValueType:

Object
└ AbstractNumber
└ AbstractFloat
└ Double
All Implemented Interfaces: 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

Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public native | Double `Double()` | Builds the neutral Double value (`0.
public native | Double `Double(value: Boolean)` | Builds a Double from a Boolean value.
public native | Double `Double(value: Char)` | Builds a Double from a character code point.
public native | Double `Double(value: Double)` | Copy constructor.
public native | Double `Double(value: Float)` | Builds a Double from a Float value.
public native | Double `Double(value: Int)` | Builds a Double from an Int value.
public native | Double `Double(value: Long)` | Builds a Double from a Long value.
public native | Double `Double(value: String) throws BadValueException` | Parses a Double from a textual representation.
public native | Double `Double(value: UInt)` | Builds a Double from a UInt value.
public native | Double `Double(value: ULong)` | Builds a Double from a ULong value.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | toString `toString() as String:` | Converts this value to its textual representation.

Methods inherited from Object: fromJson, toDict, toJson, toString, toXml
Operators

Modifier and Type | Member | Description
--- | --- | ---
public native static | operator!=( readonly a as Double, readonly b as Double ) as Boolean | Tests whether two Double values are different.
public native static | operator%( readonly a as Double, readonly b as Double ) as Double | Computes the floating-point remainder.
public native static | operator%=( readonly a as Double, readonly b as Double ) as Void | Replaces `a` with the floating-point remainder of `a / b`.
public native static | operator*( readonly a as Double, readonly b as Double ) as Double | Multiplies two Double values.
public native static | operator**( readonly value as Double, readonly power as Double ) as Double | Raises a Double value to a Double power.
public native static | operator**=( readonly value as Double, readonly power as Double ) as Void | Replaces `value` with `value ** power`.
public native static | operator*=( readonly a as Double, readonly b as Double ) as Void | Multiplies `a` by `b` in place.
public native static | operator+( readonly a as Double, readonly b as Double ) as Double | Adds two Double values.
public native static | operator+=( readonly a as Double, readonly b as Double ) as Void | Adds `b` to `a` in place.
public native static | operator-( readonly a as Double, readonly b as Double ) as Double | Subtracts two Double values.
public native static | operator-=( readonly a as Double, readonly b as Double ) as Void | Subtracts `b` from `a` in place.
public native static | operator/( readonly a as Double, readonly b as Double ) as Double | Divides two Double values.
public native static | operator/=( readonly a as Double, readonly b as Double ) as Void | Divides `a` by `b` in place.
public native static | operator<( readonly a as Double, readonly b as Double ) as Boolean | Tests whether `a` is strictly lower than `b`.
public native static | operator<=( readonly a as Double, readonly b as Double ) as Boolean | Tests whether `a` is lower than or equal to `b`.
public native static | operator==( readonly a as Double, readonly b as Double ) as Boolean | Tests whether two Double values are equal.
public native static | operator>( readonly a as Double, readonly b as Double ) as Boolean | Tests whether `a` is strictly greater than `b`.
public native static | operator>=( readonly a as Double, readonly b as Double ) as Boolean | Tests whether `a` is greater than or equal to `b`.