Calculate the absolute value of a float without using @abs

This might not be the best solution for your case, but I came up with this in response to a similar question.