Why does programmer need float or integer? In what situation they decide for using float or integer? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why does programmer need float or integer? In what situation they decide for using float or integer?

23rd Jan 2017, 7:35 AM
Fandi Prawira Kusuma
Fandi Prawira Kusuma - avatar
1 ответ
+ 4
Numbers are extremely important for keeping track of the program flow, and make calculations. There are an insane number of uses for them, although most of your programs will probably use a lot of integers, and not so many floating point numbers. Another very important thing: Numbers are universal, language isn't. Using message numbers instead of message literals is a great practice when working on production code.
23rd Jan 2017, 8:22 AM
Dao
Dao - avatar