example using double type floating-point type variables