j
k
j a
j l
John Maddock writes:
Probably overkill to add to Boost.Math, but how about: template <class T> T round2fraction(T x, T f) { return f * round(x/f); }
Probably overkill to add to Boost.Math, but how about:
template <class T> T round2fraction(T x, T f) { return f * round(x/f); }
Thx, this is at least shorter than our solution.
Back to the thread
Back to the list