pan>
f2(<span class="hljs-number">1200000.5555</span>)     <span class="hljs-comment">// 1.2M</span>

<span class="hljs-comment">// create an exp formatter</span>
f3 = hx.format.exp(<span class="hljs-number">3</span>)
f3(<span class="hljs-number">9.9999</span>)          <span class="hljs-comment">// 10e0</span>
f3(<span class="hljs-number">1.1111</span>)          <span class="hljs-comment">// 1.11e0</span>
f3(<span class="hljs-number">1.5555</span>)          <span class="hljs-comment">// 1.56e0</span>
f3(<s