This listing demonstrates the use of the toPrecision() method.