Oops, fix last commit so that it also works with modf().