C++ - float and double values

Published: 04 February 2014
on channel: 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


Watch video C++ - float and double values online without registration, duration hours minute second in high quality. This video was added by user McProgramming 04 February 2014, don't forget to share it with your friends and acquaintances, it has been viewed on our site 42,664 once and liked it 192 people.