# Variable Format String

**URL:** https://www.finalbuilder.com/forums/t/variable-format-string/4516
**Category:** Discussion
**Created:** [May 10, 2012, 11:36am UTC](https://www.finalbuilder.com/forums/t/variable-format-string/4516 "2012-05-10T11:36:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sexy-trousers](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sexy-trousers/32/97_2.png) [@sexy-trousers](https://www.finalbuilder.com/forums/u/sexy-trousers)
#### Post date: [May 10, 2012, 11:36am UTC](https://www.finalbuilder.com/forums/t/variable-format-string/4516/1 "2012-05-10T11:36:23Z")

</div>

I trying to get a variable to format correctly as a currency value (with leading $ and 2 decimal places etc.), but I'm having no luck and there's no documentation at all...

&nbsp;I've tried setting the var as a string/Float and tried using {c}, just "c" without the curl braces, {0:c} - nothing works. Can you guys give me/us a few examples here in the forum and also update the docs please...

Thanks, TJ

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [May 15, 2012, 11:40am UTC](https://www.finalbuilder.com/forums/t/variable-format-string/4516/2 "2012-05-15T11:40:33Z")

</div>

Hi TJ   
  
 The format string is documented in the help under Variables\Variable Format Strings.   
  
 This should work for currency : $%.2n

---

<div class="post-metadata">

### Author: ![sexy-trousers](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sexy-trousers/32/97_2.png) [@sexy-trousers](https://www.finalbuilder.com/forums/u/sexy-trousers)
#### Post date: [May 15, 2012, 9:53am UTC](https://www.finalbuilder.com/forums/t/variable-format-string/4516/3 "2012-05-15T09:53:32Z")

</div>

Thanks for the reference, but the language is pretty think in that section. Can I suggest you include a few more examples of common format strings in that section, I think it would help greatly in understanding this great feature…   
  
 TJ
