# Decimal places

**URL:** <https://forum.kirupa.com/t/decimal-places/42897>\
**Category:** Uncategorized\
**Created:** [February 14, 2004, 7:25am UTC](https://forum.kirupa.com/t/decimal-places/42897 "2004-02-14T07:25:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandyas](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@sandyas](https://forum.kirupa.com/u/sandyas)\
**Post date:** [February 14, 2004, 7:25am UTC](https://forum.kirupa.com/t/decimal-places/42897/1 "2004-02-14T07:25:09Z")

</div>

hi,

This might sound stupid…

Does anybody kknow how to restrict the decimal places values in a number?

for example… if iam doing something like:

var n;  
n=100/3;  
input.text=n;

In the input textfield i want only 33.33 to appear rather than 33.3333…is there any way to do this, rather than restricting the size of the textfield??

pls help!!! ☹
