Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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?
3 Respostas
+ 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)
+ 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.
+ 1
Ipang well you got to the reference but what is "floating point"?