Convert array to a negative number array?

Hi

How do I convert an array of positive numbers to a array of negative ones?
Such as: 013, 013, 013, 013, 013, 013… to
-013, -013, -013, -013, -013, -013,

or
, 0, 0, 0, 0, 0, 0
to
-, -0, -0, -0, -0, -0, -0, -0

In Bubble it’s a bit fiddly…

Take the list of numbers
Format it as text
For each item use This number x -1 (use anything you like as the delimiter)
Split by the same delimiter
Then use each item converted to number

Hi Adam, thanks again for replying me.
How do you do this: "For each item use This number x -1 "
I’m hanging on that…

1 Like

Thanks man.

This topic was automatically closed after 70 days. New replies are no longer allowed.