Struggling to find a way to multiply the numbers in the below array
[120.98 7, 151.99 8, 141.39 4, 137.71 7, 121.27 6, 187.29 11]
Trying to split them by space using split and multiply them however facing issues, any ideas ?
Ask is to multiply the two numbers before comma.
It's a problem if your array stands as you show it. But if you set it first in String format, here is a solution :
It's probably not the best or cleanest way, but it fits your requirements here's the result:
Alex