# Format number through scripting

**URL:** <https://forum.inductiveautomation.com/t/format-number-through-scripting/92541>\
**Category:** Ignition\
**Created:** [June 28, 2024, 5:46pm UTC](https://forum.inductiveautomation.com/t/format-number-through-scripting/92541 "2024-06-28T17:46:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 28, 2024, 6:03pm UTC](https://forum.inductiveautomation.com/t/format-number-through-scripting/92541/3 "2024-06-28T18:03:42Z")

</div>

Perhaps you can get Nick to share his code from this topic:

> [@Add identical "numberFormat" function in Scripting as in Expressions](https://forum.inductiveautomation.com/t/add-identical-numberformat-function-in-scripting-as-in-expressions/92377):
>
> I know that I can use Python's formatting to format numbers, but when you're trying to apply a "formatString" in script, it's not simple as you basically have to redevelop the logic inside the numberFormat expression function in script. It'd be nice if there was an identical function available to use out of the box

---

_[View the full topic](https://forum.inductiveautomation.com/t/format-number-through-scripting/92541)._
