title: python trim number without converting to string first
body: <p>if i have an integer like this:</p>
  
  <p>123456789</p>
  
  <p>I would like to return only 12345 - so trimming the number to a length of 5 digits.</p>
  
  <p>Is this possible without first converting to a string? I cant see any built in function to do this.</p>