How to: Hold Fractions in a Variable
A variable holds numbers with fractions if you declare it to be of type Double. Thecan hold floating-point numbers from -1.79769313486231570E+308 through 1.79769313486231570E+308.
You can also use theor the to hold fractions. For more information, see .
To hold fractions in a variable
Declare the variable with a.
Follow the variable name with an As clause.
Follow the As keyword with the Double keyword.