+ 1

What is a floating point variable?

A non-technical description please?

15th Jul 2016, 8:51 AM
Karan Patel
Karan Patel - avatar
1 ответ
+ 2
It's a variable that represents a real number (eg 1.1, 3.141, 9.0, 123.456 etc). The 'float' refers to floating decimal point (i.e you don't have a set number before or after decimal). Double is similar to float, but can hold more digits (has double precision)
15th Jul 2016, 11:52 AM
Tomek Cymes
Tomek Cymes - avatar