Is there any way to make float or double value less than 4 decimal places? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is there any way to make float or double value less than 4 decimal places?

I've declared the variables into float and double to get decimal values. The problem is the output it gives until more than 10 decimal places. Is there any coding that can shorten the amount of decimal place or the specific amount of decimal place we need ? Thank you for the info ☺

10th Dec 2019, 1:44 PM
FrostCore
FrostCore - avatar
1 Answer
+ 3
thx ~ swim ~ ! Now I can finally make my decimal values less complicated😆
10th Dec 2019, 2:07 PM
FrostCore
FrostCore - avatar