Comment

Comment by danbst

Both are correct from math POV, but they differ in how "integer division" works.

Python floors `7 // -5` to -2, C rounds `7 / (-5)` to -1.

parent danbst 5 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton