# ToString - Format

**URL:** https://forum.dynamobim.com/t/tostring-format/113296
**Category:** Developers
**Tags:** python, dynamo
**Created:** [December 3, 2025, 6:50pm UTC](https://forum.dynamobim.com/t/tostring-format/113296 "2025-12-03T18:50:25Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)
#### Post date: [December 3, 2025, 7:13pm UTC](https://forum.dynamobim.com/t/tostring-format/113296/2 "2025-12-03T19:13:53Z")

</div>

`String.FromObject` \> `String.SubString`

Is a way.

Maybe `Math.Round`?

> [@How get i the correct "rounding"?](https://forum.dynamobim.com/t/how-get-i-the-correct-rounding/74317/10):
>
> This may help: str; indx = String.IndexOf(str,”.”); frmtdStr = String.SubString(str, 0, indx+3); Untested as I am not at my computer. If you’re still stuck when I get to it in ~30 minutes I’ll post a confirmed fix.

---

_[View the full topic](https://forum.dynamobim.com/t/tostring-format/113296)._
