Hi Todd, This is going to be hard for an intuitive guy like you, but it can be proven that 100% of all numbers are irrational (see https://math.stackexchange.com/questions/1556670/100-of-the-real-numbers-between-0-and-1-are-irrational ).
Except the ones that a computer can do operations on, which are by definition Rational, as others in the list have already said. The apparent paradox between these statements arises because of the logic of infinities. However, my question to you is: when would you come across an irrational number in a computer? How would you express it? Suppose I gave you a function sub irrational( $x ) which returns true for an irrational number. What would you put in for $x? Bear in mind that anything like pi or sqrt(2) is either going to be infinitely long or a rational approximation. So I could argue that raku already has a function irrational. It is called False. Regards, Richard On Thu, Feb 20, 2020, 02:58 ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > Hi All, > > This is a complete trivia question. > > Is there a test to see if a number is irrational, > such as the square root of two? > > And how does Int handle a irrational number? Is > there a limit to magic Larry powder? > > Many thanks, > -T >