title: Checking for a perfect cube
body: <p>So I have to make a code to check whether or not a number is a perfect cube, but for some reason for any cube greater than 27, it says it's root is x.99999999. (i.e. it returns 64**(1/3) as 3.9999 &amp; 125**(1/3) as 4.9999).</p>
  
  <pre><code>n = int(input("What number would you like to check if it is a cube?"))
  
  def is_cube(n):
      guess = n**(1.0/3.0)
      if (guess)%1 == 0:
          print(True, "it's cubed root is", guess)
      else:
          print(False, "it's cubed root is", guess)
  is_cube(n)
  </code></pre>