Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Why 7%1.4 is not zero?
Post: RE: Why 7%1.4 is not zero?

(Mar-06-2017, 07:14 PM)micseydel Wrote: It's because the underlying math is done in binary. Consider 10 / 3, you can't represent it precisely with decimal notation. The same problem happens here, ex...
tinghf News and Discussions 2 3,439 Mar-07-2017, 09:10 AM
    Thread: Why 7%1.4 is not zero?
Post: Why 7%1.4 is not zero?

Hello guys, 7/1.4=5, the remainder is zero, simple maths. But why 7%1.4 gives the resultĀ 4.440892098500626e-16? I know it is extremely close to zero, but I want to know how Python do the maths and ...
tinghf News and Discussions 2 3,439 Mar-06-2017, 06:56 PM

User Panel Messages

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