Fixed a rounding error in Funcs.intAtPos