accept slightly larger values than fits into float or double in serialization to workaround range errors due to rounding errors