Solved! Go to Solution.
// JScript
dotNET.System.String.Format("{0:n0}", 1000).OleValue
It uses the current locale's thousands separator - comma/space/period etc.
// JScript
function ToString(number)
{
var culture = dotNET.System_Globalization.CultureInfo.zctor("en-US");
var args = dotNET.System_Collections.ArrayList.zctor();
args.Add(number);
var str = dotNET.System.String.Format_3(culture, "{0:n0}", args.ToArray()).OleValue;
return str;
}
// JScript
dotNET.System.String.Format("{0:n0}", 1000).OleValue
It uses the current locale's thousands separator - comma/space/period etc.
// JScript
function ToString(number)
{
var culture = dotNET.System_Globalization.CultureInfo.zctor("en-US");
var args = dotNET.System_Collections.ArrayList.zctor();
args.Add(number);
var str = dotNET.System.String.Format_3(culture, "{0:n0}", args.ToArray()).OleValue;
return str;
}
Subject | Author | Latest Post |
---|---|---|