You are here: Symbol Reference > Math387 Namespace > Functions > Math387.FormatSample Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Math387.FormatSample Function

The double number X formated as string.

Pascal
function FormatSample(X: double; const Format: string = '0.###'): string; overload;

the double number, formated as string.

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.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!