Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function FormatSample(Format: Char; const X: Double): string; | |
| 2 | function FormatSample(Format: Char; const X: Single): string; | |
| 3 | function FormatSample(X: Double; const Format: string): string; | The double number X formated as string. |
| 4 | function FormatSample(const Format: string; X: Double): string; | The double number X formatted as string. |
| 5 | function FormatSamplef(X: Single; const Format: string): string; | |
| 6 | function FormatSamplef(const Format: string; X: Single): string; |
Overload 1: function FormatSample(Format: Char; const X: Double): string;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Format | Char | |
| 2 | X | Double |
Returns: String
Overload 2: function FormatSample(Format: Char; const X: Single): string;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Format | Char | |
| 2 | X | Single |
Returns: String
Overload 3: function FormatSample(X: Double; const Format: string): string;
The double number X formated as string.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Double | scalar |
| 2 | Format | string |
Returns: String - the double number, formated as string.
Remarks:
The Format parameter defines the valid format string. This function is similar to Delphi FormatFloat function, but it also supports single precision type by displaying only 7 valid digits instead of Delphi FormatFloat 15 valid digits.
See Also: Math387.SampleToStr
Overload 4: function FormatSample(const Format: string; X: Double): string;
The double number X formatted as string.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Format | string | |
| 2 | X | Double | scalar |
Returns: String - the double number, formatted as string.
Overload 5: function FormatSamplef(X: Single; const Format: string): string;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Single | scalar |
| 2 | Format | string |
Returns: String
Overload 6: function FormatSamplef(const Format: string; X: Single): string;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Format | string | |
| 2 | X | Single | scalar |
Returns: String