# Limmiting a number to a certian number of decimal places

**URL:** <https://forum.kirupa.com/t/limmiting-a-number-to-a-certian-number-of-decimal-places/223646>\
**Category:** Uncategorized\
**Created:** [April 24, 2007, 4:45pm UTC](https://forum.kirupa.com/t/limmiting-a-number-to-a-certian-number-of-decimal-places/223646 "2007-04-24T16:45:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![badmonur](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@badmonur](https://forum.kirupa.com/u/badmonur)\
**Post date:** [April 24, 2007, 4:45pm UTC](https://forum.kirupa.com/t/limmiting-a-number-to-a-certian-number-of-decimal-places/223646/1 "2007-04-24T16:45:59Z")

</div>

Ok for a currency i have

gold.silver which is the same as say 1.35g with ‘g’ being gold

When I calculate with tax it often goes to 10 decimal places. How do I limmit the amount of decimal places that it can access?
