Math387.SampleToStr / SampleToStrf Method

Overload List

#SignatureDescription
1function SampleToStr(const X: Double): string;
2function SampleToStr(const X: Double; const Digits: Integer; Precision: Integer): string;Converts TSample value to a string.
3function SampleToStrf(const X: Single): string;
4function SampleToStrf(const X: Single; const Digits: Integer; Precision: Integer): string;

Overload 1: function SampleToStr(const X: Double): string;

#NameTypeDescription
1XDouble

Returns: String

Overload 2: function SampleToStr(const X: Double; const Digits: Integer; Precision: Integer): string;

Converts TSample value to a string.

#NameTypeDescription
1XDouble
2DigitsInteger
3PrecisionInteger

Returns: String - TSample value, converted to string.

Remarks:

The Digits parameter controls the minimum number of zeros in the exponent (between 0 and 4). The Precision parameter controls the number of significant digints in string representation of TSample value.

See Also: Math387.StrToSample

Overload 3: function SampleToStrf(const X: Single): string;

#NameTypeDescription
1XSingle

Returns: String

Overload 4: function SampleToStrf(const X: Single; const Digits: Integer; Precision: Integer): string;

#NameTypeDescription
1XSingle
2DigitsInteger
3PrecisionInteger

Returns: String