trunc
lib callCapy
function trunc(value : f32) f32 function trunc(value : f64) f64
Description
trunc() 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 := trunc(2.5) print(value, "\n")