Hi,
I have some dynamic value in the collection, like 0.5,0.75,3,4,2 how can I sum these values.
Thanks and Regards,
Hi,
I have some dynamic value in the collection, like 0.5,0.75,3,4,2 how can I sum these values.
Thanks and Regards,
if it is a list then use varlist.Sum()
if the values are in string format inside the list then varList.Sum(function(x) Cdbl(x))
cheers
Checkout this expression
variable1.AsEnumerable().Sum(Function(a) Cdbl(a.ToString))
Regards
Sudharsan
@Chippy_Kolot - Hope this helps
Summation of items in a List - Help - UiPath Community Forum
Hi,
Currently my collection is in double, while providing this Im getting error.
"Sum is not a member of ‘List(Of Double)’.
Hi,
Thanks, Alternative method is working
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.