fixing precision of numbers in script