aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math.zig
diff options
context:
space:
mode:
authoroittaa <8972248+oittaa@users.noreply.github.com>2025-03-24 16:07:40 +0100
committerGitHub <noreply@github.com>2025-03-24 16:07:40 +0100
commitc1db72cdbcddb59aa4e9960f4c07de9781b296f6 (patch)
tree390e143369e9193dfe9cfbf1399623ee8f1700f1 /lib/std/math.zig
parent9f8d938d3825bd5d4d2d7f76907075d13b04d8e1 (diff)
downloadzig-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.zig2
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;