title: Checking to see if a string is an integer or float
body: <p>So I'm creating a program to show number systems, however I've run into issues at the first hurdle. The program will take a number from the user and then use that number throughout the program in order to explain several computer science concepts.</p>
  
  <p>When explaining my first section, number systems, the program will say what type of number it is. I'm doing this by converting the string into a float number. If the float number only has '.0' after it then it converts it into a integer.</p>
  
  <p>Currently I'm using this code</p>
  
  <pre><code>while CorrectNumber == False:
  try:
      Number = float(NumberString) - 0
      print (Number)
  except:
      print ("Error! Not a number!")
  </code></pre>
  
  <p>This is useful as it shows if the user has entered a number or not. However I am unsure how to now check the value after the decimal place to check if I should convert it into a integer or not. Any tips?</p>