Math387::FormatSample Function

Overload List

#SignatureDescription
1DewString FormatSample(double X, const DewString &Format = "0.###");The double number X formated as string.
2DewString 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.

#NameTypeDescription
1Xdouble
2Format = "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.

#NameTypeDescription
1Formatconst DewString &
2Xdouble

Returns: the double number, formatted as string.

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler