Depends what you will do with it
if you are doing any large numbers or calculations…
a double has 2x the precision of float.
In general a double has 15 to 16 decimal digits of precision, while float only has 7.
So there is great safety and advantage in using Double
Price doesn't need too many digits. Both float and double are fine.
The type should normally be double.
Another possibility is float, but on most systems the float type is too limited in precision for the performance and space savings.
actually the best is BCD
to avoid rounding errors the next best is int and keep track of pennies
convert to dollars when printing the amount…