Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

ActionScript 3

Round number for money conversion

Math.round( num * 100 ) / 100
https://snipt.net/embed/42073fc562a5be1139fc400cbf4e8dd0/
https://snipt.net/raw/42073fc562a5be1139fc400cbf4e8dd0/
42073fc562a5be1139fc400cbf4e8dd0
as3
ActionScript 3
1
2016-11-29T22:01:13
True
False
False
/api/public/snipt/6072/
round-number-for-money-conversion
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="n">Math</span><span class="o">.</span><span class="na">round</span><span class="o">(</span> <span class="n">num</span> <span class="o">*</span> <span class="mi">100</span> <span class="o">)</span> <span class="o">/</span> <span class="mi">100</span> </span></pre></div> </td></tr></table>
as, as3, conversion, currency, decimal, math
Copyrighted, illegal, or inappropriate content? Email [email protected].