Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is it a bug?
#1
[Image: python-problem-1.png]

Hi. I started python today #I'm a noob

this is my code
X1=3.145
X2=X1-int(X1) # so it must be 3.145-3.000 =0.145

Y1=7.145
Y2=Y1-int(Y1) # and the results must be 0.145

# X2 and X1 must be equal ! but why they aren't ?

#question 1 : WHY?

#question 2 : what should I do ?
Reply


Messages In This Thread
is it a bug? - by akbarasghar - Apr-24-2019, 01:27 AM
RE: is it a bug? - by ichabod801 - Apr-24-2019, 01:42 AM
RE: is it a bug? - by akbarasghar - Apr-24-2019, 02:21 AM
RE: is it a bug? - by DeaD_EyE - Apr-24-2019, 08:37 AM
RE: is it a bug? - by ichabod801 - Apr-24-2019, 12:25 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020