Capy-Bearer Documentation

neg

lib call

Capy

function neg(value : f32) f32
function neg(value : f64) f64

Description

neg() returns the result for value.

The compiler emits a direct lib call.

Parameters

value : the input value

Return Values

An f32 or f64 value.

Example

Capy

var value := neg(2.5)
print(value, "\n")