/**
         * 货币格式化(加入分隔符)
         * @param value
         * @return
         *
         */
        public static string currencyFormat2(float value, string splitchar = ",")
        {
            string    valueString = value.ToString();
            int       index       = valueString.Length;
            ArrayList result      = new ArrayList();

            while (index >= 3)
            {
                result.Insert(0, valueString.Substring(index - 3, 3));
                index = index - 3;
            }
            ;
            if (index > 0)
            {
                result.Insert(0, valueString.Substring(0, index));
            }
            ;
            return(CollectionUtil.Join(result, splitchar));
        }
예제 #2
0
 static public void List(float[] args)
 {
     Logger.to("[LIST]", ConsoleColor.White, CollectionUtil.Join(args, ","));
 }
예제 #3
0
 /**
  *
  * @returns
  * @version 1.0
  * @platform Native
  */
 override public string ToString()
 {
     return("[ByteArray] length:" + this.Length + ", bytesAvailable:" + this.BytesAvailable + "\n" + CollectionUtil.Join(this._bytes, " "));
 }