# Dynamo Integer to Double

**URL:** <https://forum.dynamobim.com/t/dynamo-integer-to-double/59084>\
**Category:** Lists-Logic\
**Tags:** dynamo\
**Created:** [January 8, 2021, 1:02pm UTC](https://forum.dynamobim.com/t/dynamo-integer-to-double/59084 "2021-01-08T13:02:23Z")\
**Posts on this page:** 3\
**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:** [January 8, 2021, 1:02pm UTC](https://forum.dynamobim.com/t/dynamo-integer-to-double/59084/1 "2021-01-08T13:02:23Z")

</div>

Hello Forum

I am struggling with something I thought would be very simple. I am collecting Integer values from a parameter field in Revit, and would like the max value in the list. The MaximumItem node connected directly requests string data, and then if I add a StringFromObject node it only returns the list with the max item identified within, not isolating the max item. See below.

 ![Integer Max](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/3/f38e864b45d3bbc7f82ea57119c4792fa9014faa.png)  
Any thoughts?  
Many thanks  
Tim

---

<div class="post-metadata">

**Author:** ![simon\_murphy1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/simon_murphy1/32/101536_2.png) [@simon\_murphy1](https://forum.dynamobim.com/u/simon_murphy1)\
**Post date:** [January 8, 2021, 1:16pm UTC](https://forum.dynamobim.com/t/dynamo-integer-to-double/59084/2 "2021-01-08T13:16:08Z")

</div>

I think the output from get parameter value node. Exports sublists with no maximum value so the nodes won’t work. How ever look at string-maximum item chain of nodes is in fact working. The maximum item in sublist 3 is 2 and this is what is being reported by maximum item node.

Edit: The list structure i.e. number of levels is quite complicated, perhaps earlier in the script you need to do some flattening of lists.

Only sublists with multiple different values would be able to have a maximum value. I think a sublist of length one would not have a maximum value???

---

<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:** [January 8, 2021, 1:29pm UTC](https://forum.dynamobim.com/t/dynamo-integer-to-double/59084/3 "2021-01-08T13:29:23Z")

</div>

Hi Simon

A flatten node just before this has worked! Thank you!

 ![solved](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/2/02029e3d27874ce16c222ae87f641cdb4eb01b9b.png)

Cheers  
Tim
