feat(builtins): Num.acos : Float -> Float

This commit is contained in:
lrosa007 2020-11-01 09:27:42 -05:00
parent 00445b3bc6
commit 4da2d7f101
9 changed files with 46 additions and 2 deletions

View file

@ -21,6 +21,11 @@ fn powInt(base: i64, exp: i64) callconv(.C) i64 {
return math.pow(i64, base, exp);
}
comptime { @export(acos, .{ .name = math_namespace ++ ".acos", .linkage = .Strong }); }
fn acos(num: f64) callconv(.C) f64 {
return math.acos(num);
}
// Str.split