I am new to this and am trying to do arithmetic on a decimal number in the following format:

XXX.XXXXXX

The arithmetic will include squaring, taking the square root, dividing and addition and subtraction. What is the best way to go about this?

XXX.XXXXXX

The arithmetic will include squaring, taking the square root, dividing and addition and subtraction. What is the best way to go about this?

The easiest way it to use doubles.