Capy-Bearer Documentation

is_infinite

lib call

Capy

function is_infinite(value : f32) bool
function is_infinite(value : f64) bool

Description

is_infinite() tests if value is positive or negative infinity.

The compiler emits a direct lib call.

Parameters

value : the floating-point value

Return Values

true or false.

Example

Capy

print(is_infinite(0.0), "\n")