diff options
| author | oittaa <8972248+oittaa@users.noreply.github.com> | 2025-03-24 16:07:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-24 16:07:40 +0100 |
| commit | c1db72cdbcddb59aa4e9960f4c07de9781b296f6 (patch) | |
| tree | 390e143369e9193dfe9cfbf1399623ee8f1700f1 /lib/std/math.zig | |
| parent | 9f8d938d3825bd5d4d2d7f76907075d13b04d8e1 (diff) | |
| download | zig-c1db72cdbcddb59aa4e9960f4c07de9781b296f6.tar.gz zig-c1db72cdbcddb59aa4e9960f4c07de9781b296f6.zip | |
std.math: Add least common multiple (lcm)
Diffstat (limited to 'lib/std/math.zig')
| -rw-r--r-- | lib/std/math.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig index 262d741e43..78acd4b90c 100644 --- a/lib/std/math.zig +++ b/lib/std/math.zig @@ -235,6 +235,7 @@ pub const sinh = @import("math/sinh.zig").sinh; pub const cosh = @import("math/cosh.zig").cosh; pub const tanh = @import("math/tanh.zig").tanh; pub const gcd = @import("math/gcd.zig").gcd; +pub const lcm = @import("math/lcm.zig").lcm; pub const gamma = @import("math/gamma.zig").gamma; pub const lgamma = @import("math/gamma.zig").lgamma; @@ -395,6 +396,7 @@ test { _ = cosh; _ = tanh; _ = gcd; + _ = lcm; _ = gamma; _ = lgamma; |
