# Dynamo string zero decimal places / units

**URL:** <https://forum.dynamobim.com/t/dynamo-string-zero-decimal-places-units/94827>\
**Category:** Uncategorized\
**Tags:** dynamo\
**Created:** [October 23, 2023, 5:40pm UTC](https://forum.dynamobim.com/t/dynamo-string-zero-decimal-places-units/94827 "2023-10-23T17:40:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimGreatrex](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@TimGreatrex](https://forum.dynamobim.com/u/TimGreatrex)\
**Post date:** [October 23, 2023, 5:40pm UTC](https://forum.dynamobim.com/t/dynamo-string-zero-decimal-places-units/94827/1 "2023-10-23T17:40:25Z")

</div>

Hello Forum

Would I be able to ask for your help with an issue I cannot work out. I am doing a simple task of getting the string value from a parameter, in this case from a Mass Floor parameter called ‘MASS LEVEL’. The value should be “02”, but it is coming out as “2.000”. It seems to drop the zero at the front and add the decimal places. Does anyone know why it is doing this, and what I can do to get the value it should be? Please see screengrabs below:  
 ![Mass Level value](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/7/471a0b2ef3fe6571663606e28dd393c9106891b4.png)  
“MASS LEVEL” value it should be.

 ![Value output](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f55061a3950903aacd3251a0639b3f0d0ad6d8a5.png)  
This is the value I am getting “2.000”, rather than “02”.

Thank you for any help with this.  
Cheers  
Tim

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 23, 2023, 5:47pm UTC](https://forum.dynamobim.com/t/dynamo-string-zero-decimal-places-units/94827/2 "2023-10-23T17:47:18Z")

</div>

This is a known bug. The “.000” isn’t actually there, just appears to be.

The decimal and associated data only appears in the Dynamo UI.

---

<div class="post-metadata">

**Author:** ![TimGreatrex](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@TimGreatrex](https://forum.dynamobim.com/u/TimGreatrex)\
**Post date:** [October 24, 2023, 8:51am UTC](https://forum.dynamobim.com/t/dynamo-string-zero-decimal-places-units/94827/3 "2023-10-24T08:51:34Z")

</div>

Hi Jacob

Thank you for this. Fingers crossed it will fixed soon. I have tested setting the value and it works.

 ![Mass Level value2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/9/c957d943102fbb27ae1211da8d1bbab674dcb0a0.png)  
 ![Value output2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/b/3bdbc67a01ca05580a22c2d3e61259f794ac936e.png)

Thanks again  
Tim

---

<div class="post-metadata">

**Author:** ![TimGreatrex](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@TimGreatrex](https://forum.dynamobim.com/u/TimGreatrex)\
**Post date:** [October 24, 2023, 9:21am UTC](https://forum.dynamobim.com/t/dynamo-string-zero-decimal-places-units/94827/4 "2023-10-24T09:21:37Z")

</div>

I use this code for joining strings, and it has corrected the bug. Thought this might be helpful for others with this issue. Thanks

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/d/5debb56a6a820e17866f3aef5a5cfa8e84601e62.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 24, 2023, 9:27am UTC](https://forum.dynamobim.com/t/dynamo-string-zero-decimal-places-units/94827/5 "2023-10-24T09:27:45Z")

</div>

> [@TimGreatrex](#):
>
> Fingers crossed it will fixed soon.

I believe it is fixed in 2.19 and 2.17… Revit is just in an intermediate phase where this is an issue. 🤣
