Type Property

infinity

Positive infinity.

Required.

Declaration

static var infinity: Self { get }

Discussion

Infinity compares greater than all finite numbers and equal to other infinite values.

let x = Double.greatestFiniteMagnitude
let y = x * 2
// y == Double.infinity
// y > x