phobos-next v0.4.6 (2022-11-25T12:27:21Z)
Home
Dub
Repo
lcm
nxt
rational
Find the Least Common Multiple (LCM) of
a
and
b
.
CommonInteger
!(
I1
,
I2
)
lcm
(
I1
I2
)
(
const
scope
I1
a
,
const
scope
I2
b
)
if
(
isIntegerLike
!
I1
&&
isIntegerLike
!
I2
)
Meta
Source
See Implementation
nxt
rational
classes
OverflowException
enums
isRational
functions
ceil
floor
gcf
lcm
rational
round
toRational
structs
Rational
templates
isIntegerLike
Find the Least Common Multiple (LCM) of a and b.