units-d ~master (2021-03-13T17:32:42Z)
Home
Dub
Repo
Rational.Rational
experimental
units
Rational
Undocumented in source.
alias
Rational
=
Rational
!(
n
/
cast
(
int
)
gcd_
,
d
/
gcd_
)
struct
Rational
template
Rational
(int n, uint d = 1u)
@
safe
static if
(!(
gcd_ > 1
))
struct
Rational {
enum
int
numerator
;
enum
uint
denominator
;
enum
double
value
;
}
Members
Variables
denominator
enum
uint
denominator
;
Undocumented in source.
numerator
enum
int
numerator
;
Undocumented in source.
value
enum
double
value
;
Undocumented in source.
Meta
Source
See Implementation
experimental
units
Rational
aliases
Rational
manifest constants
gcd_