Product Type

Float64

A double-precision, floating-point value.

Members

Bindings

var value: ???

Functions

fun +(_ other: Self) -> Float64

Returns the sum of self and other.

fun +=(_ other: Self) { inout }

Writes the sum of self and other to self.

fun -(_ other: Self) -> Float64

Returns self subtracted by other.

fun -=(_ other: Self) { inout }

Writes the result of self subtracted by other to self.

fun *(_ other: Self) -> Float64

Returns the product of self and other

fun *=(_ other: Self) { inout }

Writes the product of self and other to self.

fun /(_ other: Self) -> Float64

Returns the quotient of dividing self by other

fun /=(_ other: Self) { inout }

Writes the quotient of dividing self by other to self.

fun %(_ other: Self) -> Float64

Returns the remainder of dividing self by other

fun %=(_ other: Self) { inout }

Writes the remainder of dividing self by other to self.

fun -() -> Float64

Returns the additive inverse of self.

fun +() -> Float64

Returns self.

fun <(_ other: Self) -> Bool

Returns true if self is smaller than other; returns false otherwise.

fun <=(_ other: Self) -> Bool

Returns true if self is smaller than or equal to other; returns false otherwise.

fun >(_ other: Self) -> Bool

Returns true if self is greater than other; returns false otherwise.

fun >=(_ other: Self) -> Bool

Returns true if self is greater than or equal to other; returns false otherwise.

fun ==(_ other: Self) -> Bool

Returns true if self is equal to other; returns false otherwise.

fun !=(_ other: Self) -> Bool

Returns true if self is not equal to other; returns false otherwise.

static fun pi() -> Float64

The mathematical constant pi (π), approximately equal to 3.14159.

Initializers

init()
init()

Creates an instance with value 0.0.