title: Determine if a float number is irrational of a fraction
body: <p>I have a random float number and I have to determine if it is an irrational number like √2 or a fraction like 123/321. Both of them are represented like an endless set of numbers anywhere but is there any way to definitely say whether a number is a fraction or it's irrational?</p>
  
  <p>Thank you!</p>