mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
feat(builtins): Num.acos : Float -> Float
This commit is contained in:
parent
00445b3bc6
commit
4da2d7f101
9 changed files with 46 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue