Using float or double

spark-shell
cloudera
cca-175
apache-spark
spark-sql

#1

Hi Durga Sir,

I have a big confusion when to use float and when to use double. The output after decimal differs in them. I think when datatype of field is given as float then we should use float not double.

I was doing workshop exercise 5, my output after decimal was different for many values than the others who commented there. I tried both float and double.

Please let me know the reason I am getting different output, I am using cloudera quickstart in vmware.

Thanks,
Mohit Jain