change double types in Maths to decimal types