AfDalDecimal * afdal_decimal_make_positive AfDalDecimal decimal  ) 
 

Allows to transform a negative value into a positive value.

This function allows to get a positive representation from a negative representation. It doesn't do an arithmetic operation to obtain the result.

This function tries first to figure out if the given decimal value is a negative one.

Once done, the function normalizes the number and strips the negative sign from the begining.

If the number is already positive, the function just returns without error.

Parameters:
decimal the AfDalDecimal value to transform into a positive.
Returns:
the function returns the new posite AfDalDecimal value. In the case the given value is already positive the function retuns NULL.