News for hackers. Stuff that matters.
Re:Rational or Not? This Basic Math Question Took Decades to... by vrighter on Friday January 10, 2025 @09:05AM (#42655654)
x - (x - floor(x)) == x truncated to an integer

when x is an irrational number > 1:

"x - floor(x)" is just the fractional part of x, so it's an irrational number which is not equal to x.

Subtracting the fractional part from the original leaves only the integer part, which is obviously rational.

There are no comments on this comment yet.