Overload List
| # | Signature | Description |
|---|---|---|
| 1 | DewString FormatSample(double X, const DewString &Format = "0.###"); | The double number X formated as string. |
| 2 | DewString FormatSample(const DewString &Format, double X); | The double number X formatted as string. |
Overload 1: DewString FormatSample(double X, const DewString &Format = "0.###");
The double number X formated as string.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | double | |
| 2 | Format = "0.###" | const DewString & |
Returns: 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
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler
Overload 2: DewString FormatSample(const DewString &Format, double X);
The double number X formatted as string.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Format | const DewString & | |
| 2 | X | double |
Returns: the double number, formatted as string.
Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler