Home > other >  Python problem
Python problem

Time:10-12

Just started watching python


> A=3.14
> A
3.14
> A=a + 1
> A
4.140000000000001
> A=a + 3
> A
7.140000000000001

Don't understand why will keep up with a 1,3.14 + 1 isn't behind 4.14 me why?

CodePudding user response:

Suggest you go to know about the precision problem
  • Related