C++ - float and double values

Опубликовано: 04 Февраль 2014
на канале: McProgramming
42,664
192

How do you store decimal values or real numbers in C++? With float and double type variables. We will focus on float and the only difference between float and double is that double is 64 bit and float is 32 bit. They do the same thing except for double holds twice the amount of bytes. It is up to programmer as to what they want to declare their variables. I also show you how to cast an int to a float (aka floating point value) in C++.

http://www.mcprogramming.org
http://www.essentialcscourses.com


Смотрите видео C++ - float and double values онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь McProgramming 04 Февраль 2014, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 42,664 раз и оно понравилось 192 людям.