Synopsis

PDX_MSGT ugn_FormatDouble(double value, char formatted_string[24])

Purpose

Format a free-format double value.

Description

The basic algorithm used is to normalize the floating point number to a range of 1.0 <= value < 10.0. The number is then converted to an integer representation for all further processing. This isolates cumulative floating point errors to the normalization loop. The function iaff__FormatDouble was used as a template for this function. It is documented well concerning the algorithm used here.

Input

value

Value to be formatted

formatted_string

Address of character array of minimum length 24

Output

formatted_string

Character string containing formatted number

Return

UGN error code