A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4659/numeric.ops.lcm below:

[numeric.ops.lcm]

29 Numerics library [numerics] 29.8 Generalized numeric operations [numeric.ops] 29.8.14 Least common multiple [numeric.ops.lcm]

template <class M, class N> constexpr common_type_t<M,N> lcm(M m, N n);

Requires: |m| and |n| shall be representable as a value of common_­type_­t<M, N>. The least common multiple of |m| and |n| shall be representable as a value of type common_­type_­t<M,N>.

Remarks: If either M or N is not an integer type, or if either is cv bool the program is ill-formed.

Returns: Zero when either m or n is zero. Otherwise, returns the least common multiple of |m| and |n|.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4