title: Function to round mm to the nearest 32nd of an inch
body: <p>I really badly need a php function that will convert a millimeter into a fraction (in inches). </p>
  
  <p>For example: </p>
  
  <p>16mm = 5/8 of an inch<br>
  321mm = 12 41⁄64 inches</p>
  
  <p>I have searched high and low for any php example and I am completely stumped. Is there any kind soul out there that has something like this built. </p>
  
  <p>Thanks so much for your help!</p>