Substracting float from array
I have an array that contains multiple values with numerical index. The data type for each value is string. It was supposed to be a float number though (38.50, 22.12, etc).
What I want to do now is subtract each values from the array with a number that I'd like to specify myself. And then, find the absolute number in case the subtraction gives a negative number as the result.

How can I do that?
Substracting float from array
===

I have an array that contains multiple values with numerical index. The data type for each value is string. It was supposed to be a float number though (38.50, 22.12, etc).
What I want to do now is subtract each values from the array with a number that I'd like to specify myself. And then, find the absolute number in case the subtraction gives a negative number as the result.

How can I do that?