gchar * afdal_decimal_normalize AfDalDecimal decimal  ) 
 

Normalize the given AfDalDecimal objet.

This function return a SQL compliant numeric string. Its main purpose is to get the standard value to be sent to af-servers. Normalize process is done by using actual separator configuration.

This function will return a normalized value to 0.0 if a null AfDalDecimal value is received.

See afdal_decimal_set_decimal_separator in order to be able to change it.

Parameters:
decimal a value to normilize
Returns:
a newly allocated string with decimal normilized value or NULL if fail.