Andrus,
Look at the formatting features of the .ToString() method, specifically look up "Numeric Format Strings" in the documentation.
~~Bonnie
>vfp toolkit for .net does not contain str(n,w,d) implementation.
>How implement it in C#?
>
>I tried code below. How to add width and presicion paramers to it ?
>
>public static string Str( float number, ushort width, ushort presicion) {
> return number.ToString();
> }
>
>Should return string whose size if width characters, left padded by spaces and having presicion characters after decimal point using current culture decimal separator.