Am I right that in real-world situations it's recommended to use double variables rather than floats? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Am I right that in real-world situations it's recommended to use double variables rather than floats?

31st Jul 2016, 8:52 AM
Aidar Sadykov
Aidar Sadykov - avatar
1 Antwort
+ 1
Depends how precise you care to be. I don't see any reason to use float over double where decimal values exist. Anyway, do a quick search online and you'll find a good explanation For example: http://stackoverflow.com/questions/618535/difference-between-decimal-float-and-double-in-net
1st Aug 2016, 10:56 AM
Mike
Mike - avatar