Hello Smart People
I have a string array{“10.00”, “10.05”, “10.50”} and add all those decimal numbers.
I like to get the output like “30.55”
i do not know how to add decimal numbers , those are in string type.
Thank you in advance.
Hello Smart People
I have a string array{“10.00”, “10.05”, “10.50”} and add all those decimal numbers.
I like to get the output like “30.55”
i do not know how to add decimal numbers , those are in string type.
@eimon You can directly calculate the Sum from the String Array like below.
strArray = {"10.00","10.05","10.50"}
totalSum = strArray.Sum(Function(x)CDbl(x)).ToString
Where totalSum is a String Variable
In your workflow
you can do the following modifications
sum= sum+CDbl(item)
@supermanPunch Hello
Thank you for your quick answer. It works.
May i know which website should i go to study because i am new to Uipath and do not know VBA. My first time seeing CDbl here honestly. if you have time please guide us. Thank you.
eimon
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.