Useful utility functions

get_integral, get_fractional and stream operator.