
I don't understand how to differentiate double and float variables
I am very new to C++
I am having trouble trying to showcase the difference between a double and a float variable.
I tried to run some commands and noticed that the value of pi started to deviate after some decimals and i wondered why different values started to come and why they were not just random gibberish the computer spits out
I then watched a video on floating point numbers by computerphile: https://www.youtube.com/watch?v=PZRI1IfStY0
Could you help me better understand how this is not random number the computer tries to put after it has run out of data?
If there are can you give me some more videos?