# Decimal places

**URL:** <https://forum.kirupa.com/t/decimal-places/160767>\
**Category:** Uncategorized\
**Created:** [August 29, 2005, 11:24am UTC](https://forum.kirupa.com/t/decimal-places/160767 "2005-08-29T11:24:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ineedsleep](https://avatars.discourse-cdn.com/v4/letter/i/e5b9ba/32.png) [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Post date:** [August 29, 2005, 11:24am UTC](https://forum.kirupa.com/t/decimal-places/160767/1 "2005-08-29T11:24:18Z")

</div>

I have asked this before but I think Im a bit slow cos I still dont understand how it works?

on (release){  
extras = ((options.abQty_25)+(options.dustQty_9.50) + (options.truckQty \* 25) + (options.lightQty\*15));  
extras.text=extras;  
dayVal = day.value;  
DayVal = day.value;

rate = Math.ceil(DayVal/7);  
costa = rate\*storesize.selectedItem.data;  
total.text=costa + extras + packingSO.selectedItem.data ;  
}

I want total.text to contain a number with 2 decimal places this is a lot harder than I thought it would be? I thought there would just be an option or something like that?
