Kimono.KLocale.FormatNumber C# (CSharp) Method

FormatNumber() public method

Given a string representing a number, converts that to a numeric string containing the localized numeric equivalent. e.g. given 123456.78F, return "123,456.78" (for some European country). name="numStr" The number to format, as a string. name="round" Round fractional digits. (default true) name="precision" Number of fractional digits used for rounding. Unused if round=false. (default 2)
public FormatNumber ( string numStr, bool round, int precision ) : string
numStr string
round bool
precision int
return string
        public string FormatNumber(string numStr, bool round, int precision)
        {
            return (string) interceptor.Invoke("formatNumber$$$", "formatNumber(const QString&, bool, int) const", typeof(string), typeof(string), numStr, typeof(bool), round, typeof(int), precision);
        }

Same methods

KLocale::FormatNumber ( double num ) : string
KLocale::FormatNumber ( double num, int precision ) : string
KLocale::FormatNumber ( string numStr ) : string
KLocale::FormatNumber ( string numStr, bool round ) : string