units-d ~master (2021-03-13T17:32:42Z)
Home
Dub
Repo
Sum.Sum
experimental
units
Sum
Undocumented in source.
template
Sum
(Lhs, Rhs)
@
safe
alias
Sum
=
Rational
!(
(
(
Lhs.numerator
*
Rhs.denominator
)
+
(
Rhs.numerator
*
Lhs.denominator
)
)
, cast(
uint
)
(
Lhs.denominator
*
Rhs.denominator
)
)
Meta
Source
See Implementation
experimental
units
Sum
aliases
Sum