Fixed wrong coords math rounding method in getValueFromPosition