# Decimal Values in TextFormats

**URL:** <https://forum.kirupa.com/t/decimal-values-in-textformats/260439>\
**Category:** flash\
**Created:** [May 15, 2008, 4:49pm UTC](https://forum.kirupa.com/t/decimal-values-in-textformats/260439 "2008-05-15T16:49:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwilliam](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@jwilliam](https://forum.kirupa.com/u/jwilliam)\
**Post date:** [May 15, 2008, 4:49pm UTC](https://forum.kirupa.com/t/decimal-values-in-textformats/260439/1 "2008-05-15T16:49:27Z")

</div>

I have a rich text editor that extends the TextField class. When I set values in the TextField, either by utilizing a TextFormat object or changing the htmlText property directly, to decimal values (ie, size or leading) the htmlText rounds them to integers. Later, when I go to save the data in the TextField in a database back on the server, these values are coming out as integers, but I need the original decimal values. I’ve tried using getTextFormat(), but those values seem to be integers as well. Can anyone shed some light on this subject?
