# Money type decimal places with variables

**URL:** <https://forum.kirupa.com/t/money-type-decimal-places-with-variables/177098>\
**Category:** flash\
**Created:** [January 30, 2006, 7:16am UTC](https://forum.kirupa.com/t/money-type-decimal-places-with-variables/177098 "2006-01-30T07:16:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Counterproductive](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Counterproductive](https://forum.kirupa.com/u/Counterproductive)\
**Post date:** [January 30, 2006, 7:16am UTC](https://forum.kirupa.com/t/money-type-decimal-places-with-variables/177098/1 "2006-01-30T07:16:22Z")

</div>

Hey  
I was hoping someone could tell me a way that I can make a variables number have two decimal places (like money) even if they are zeros.  
Like 2.00  
I can use the  
variable=variable\*100;  
variable=math.round(variable);  
variable=variable/100;  
way but that still takes away the decimals if they are zeros.  
Any help would be greatly apreciated.
