# Setting length on decimal numbers

**URL:** <https://forum.kirupa.com/t/setting-length-on-decimal-numbers/155215>\
**Category:** Uncategorized\
**Created:** [July 15, 2005, 2:11pm UTC](https://forum.kirupa.com/t/setting-length-on-decimal-numbers/155215 "2005-07-15T14:11:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnkoroberi](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@johnkoroberi](https://forum.kirupa.com/u/johnkoroberi)\
**Post date:** [July 15, 2005, 2:11pm UTC](https://forum.kirupa.com/t/setting-length-on-decimal-numbers/155215/1 "2005-07-15T14:11:43Z")

</div>

i am trying to use something like this

```auto
 float_variable = parseFloat(string_var) 

```

to represent dollar amounts… is there anyway to set the length of a float variable to do this? or is there any kind of dollar datatype in AS? (im using studio mx 2004)

thanks!!
