What is different between double and float | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What is different between double and float

1st Aug 2020, 4:04 PM
Islamudin Muhammadi šŸ‡¦šŸ‡«
Islamudin Muhammadi šŸ‡¦šŸ‡« - avatar
2 Answers
+ 6
The Decimal,Ā Double, and FloatĀ variable types areĀ different inĀ the way that they store the values. Precision is the mainĀ differenceĀ whereĀ floatĀ is a single precision (32 bit)Ā floatingĀ point data type,Ā doubleĀ is aĀ doubleĀ precision (64 bit)Ā floatingĀ point data type and decimal is a 128-bitĀ floatingĀ point data type.
1st Aug 2020, 4:06 PM
Islamudin Muhammadi šŸ‡¦šŸ‡«
Islamudin Muhammadi šŸ‡¦šŸ‡« - avatar
+ 1
Thanks
5th Aug 2020, 1:52 PM
Jamaludin Muhammadi
Jamaludin Muhammadi - avatar