Update number/fractional.cc
Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
parent
129bce7a32
commit
560e2ea26d
|
@ -40,4 +40,6 @@ struct fractional {
|
|||
x = l + fractional(r, divisor);
|
||||
return in;
|
||||
}
|
||||
template <typename U, typename = typename enable_if<is_convertible_v<T, U>>::type>
|
||||
inline U into(void) const { return U(p) / q; }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue