The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home BasePack Stringl Procedures and Functions AutoFormatData | |||||||||||||||
See also: MakeEFormat, strff, SigDigStr, FormatData, CreateParList | |||||||||||||||
AutoFormatData |
|||||||||||||||
The function AutoFormatData converts the parameter data to a string using a representation according to the following guidelines: (1) if the absolute value is greater than 10SigDig-1 or less than 0.1 the value is converted to exponential notation. (2) Numbers between those two boundaries are converted using a floating point representation. (3) The number of decimal places is adjusted in a way that SigDig significant digits are used. Any additional digits are rounded off. AutoFormatData comes in two overloaded forms: version [1] always uses a dot as the decimal separator, while version [2] replaces the dot separator by a comma if the parameter UseComma is TRUE.
|