I'm new to using boost.
Besides simply doing x.numerator()/x.denominator, is there a proper 'boost-type' way of invoking the floor(x) function (i.e. truncation towards zero) when using the boost rational library?
Thanks
I'm new to using boost.
Besides simply doing x.numerator()/x.denominator, is there a proper 'boost-type' way of invoking the floor(x) function (i.e. truncation towards zero) when using the boost rational library?
Thanks