title: How to convert metres to centimetres in Monkey C?
body: <p>Serious newbie question, but I can't seem to find the answer anywhere!</p>
  
  <p>I'm trying to convert my height from centimetres to metres in an application for my Garmin device. This is written in Monkey C (very similar to Java and C++ from what I understand).</p>
  
  <p>Here's how I'm currently doing it:</p>
  
  <pre><code>var height = angus.height;
  var heightCM = height.format("%0.2f");
  </code></pre>
  
  <p>My height is 175, and so as you might expect, this gives me a result of 175.00</p>
  
  <p>I can't seem to find any resource that tells me how to essentially move a decimal to the left. Any help would be really appreciated. </p>
  
  <p>Here's the documentation on formatting in Monkey C: <a href="https://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/Lang/Number.html#format-instance_method" rel="nofollow noreferrer">https://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/Lang/Number.html#format-instance_method</a></p>
  
  <p>Any explanation on formatting numbers would be great. I'm also attempting to truncate a number, so from 1234567 to 1234, for example. So any information on that would also be great. </p>
  
  <p>Thanks in advance!</p>