phobos-next ~master (2024-03-19T05:49:32Z)
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.