# Simple number Format Question

**URL:** https://forum.servoy.com/t/simple-number-format-question/2337
**Category:** Classic Servoy
**Created:** [July 26, 2004, 6:55pm UTC](https://forum.servoy.com/t/simple-number-format-question/2337 "2004-07-26T18:55:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ebrandt](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@ebrandt](https://forum.servoy.com/u/ebrandt)
#### Post date: [July 26, 2004, 6:55pm UTC](https://forum.servoy.com/t/simple-number-format-question/2337/1 "2004-07-26T18:55:44Z")

</div>

I want a user to enter an amount that could have a different amount or charcters.

Example  
10 or 10.46 or 100.46 or 1000.23

When I have the format set to a particular format $#.00-|#.##  
I can only enter the format with the amount of characters set by the display format

I can enter 5.00 and it displays $5.00,  
If I enter 10.00, there is an error.

I want the user to enter whatever amount they want, and have it display a leading currency sign and two 2 decimal places. I am sure I could use the same field with a different display and create a hide / on edit method. It seems that there is an easierway to do this without creating a method and multiple fields.

Thanks for the help

---

<div class="post-metadata">

### Author: ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)
#### Post date: [July 26, 2004, 7:29pm UTC](https://forum.servoy.com/t/simple-number-format-question/2337/2 "2004-07-26T19:29:08Z")

</div>

Try this

```auto
$ #,##0.00|#,##0.00

```

---

<div class="post-metadata">

### Author: ![ebrandt](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@ebrandt](https://forum.servoy.com/u/ebrandt)
#### Post date: [July 26, 2004, 7:33pm UTC](https://forum.servoy.com/t/simple-number-format-question/2337/3 "2004-07-26T19:33:00Z")

</div>

Thank you, maybe I need to find a new profession.
