The double type is similar to float, but is used when the precision of a floating point variable is not sufficient. Variables declared as type double can contain approximately twice as many significant digits as variables of type float.