# Currency format : how to do it

**URL:** <https://forum.robotframework.org/t/currency-format-how-to-do-it/1555>\
**Category:** Development\
**Created:** [30 March 2021 06:30 UTC](https://forum.robotframework.org/t/currency-format-how-to-do-it/1555 "2021-03-30T06:30:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [1 April 2021 08:21 UTC](https://forum.robotframework.org/t/currency-format-how-to-do-it/1555/3 "2021-04-01T08:21:05Z")

</div>

Hi John

Does this work for you?

```python
***test cases***

currency test
	${number} = Set Variable	160000
	${currstring} = Evaluate "{:,.0f} €".format(${number}).replace(',', ' ')
	Should Be Equal As Strings ${currstring} 160 000 €

```

The builtin [Evaluate](http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Evaluate) is pretty useful 👍🏼

Dave.

---

_[View the full topic](https://forum.robotframework.org/t/currency-format-how-to-do-it/1555)._
