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....


Unit: SDL_stringl
Class: none
Declaration: function SortableNumericString (Instring: string; DecSep: char; DecPPos: integer): string;

The function SortableNumericString extends the numeric string Instring by leading blanks in a way that the decimal point is always at the position DecPPos. The parameter DecSep specifies the character used for the decimal point (usually dot or comma).

Hint: Please note that the function SortableNumericString should be applied to floating point representations only. Numeric strings in exponential notation will not be processed correctly.

Last Update: 2017-Apr-17