Move rounding functions into the parser proper rather than having variables for them.