0

What are floating points values and their division?

In basics of cpp within the basic arithmetic section in part#4 there is mentioned floating point values and their division what are they?

4th Jan 2019, 3:47 PM
Abdul Ahad
Abdul Ahad - avatar
3 Answers
+ 2
Abdul Ahad, It will be covered in the "Data Types, Arrays, Pointers" chapter, if you are still in the Basics chapter just be patient, it's just around the corner : ) https://www.sololearn.com/learn/CPlusPlus/1622/ For simple understanding, I tend to consider any number with decimal points to be of floating point type, but if they don't have decimal point then I consider them to be integers (whole numbers)
5th Jan 2019, 3:39 PM
Ipang
+ 2
Are you referring to this note? " If one or both of the operands are floating point values, the division operator performs floating point division." It was the only note in Basic → Arithmetic section I found that could relate to your question. If so, then it meant to say if either one or both values (operands) were of floating point type, then the division operator '/' will perform floating point division, otherwise integer division is performed. If that's not what you refer, then you need to tell exactly which note you meant.
4th Jan 2019, 4:48 PM
Ipang
+ 1
Ipang well you got to the reference but what is "floating point"?
4th Jan 2019, 8:10 PM
Abdul Ahad
Abdul Ahad - avatar