added fp absolute value

Implemented an absolute value function for doubles.