/// <summary>
        /// string型转换为float型
        /// </summary>
        /// <param name="strValue">要转换的字符串</param>
        /// <param name="defValue">缺省值</param>
        /// <returns>转换后的int类型结果</returns>
        public static float ObjectToFloat(object strValue, float defValue)
        {
            if ((strValue == null))
            {
                return(defValue);
            }

            return(TypeConvertUtils.StrToFloat(strValue.ToString(), defValue));
        }
        /// <summary>
        /// string型转换为float型
        /// </summary>
        /// <param name="strValue">要转换的字符串</param>
        /// <returns>转换后的int类型结果</returns>
        public static float StrToFloat(string strValue)
        {
            if ((string.IsNullOrEmpty(strValue)))
            {
                return(0);
            }

            return(TypeConvertUtils.StrToFloat(strValue.ToString(), 0));
        }
 /// <summary>
 /// Object型转换为float型
 /// </summary>
 /// <param name="strValue">要转换的字符串</param>
 /// <param name="defValue">缺省值</param>
 /// <returns>转换后的int类型结果</returns>
 public static float StrToFloat(object strValue, float defValue)
 {
     return(TypeConvertUtils.StrToFloat(strValue, defValue));
 }