GetDefaultFloatNumberStyle() public static method

Get default float number style
public static GetDefaultFloatNumberStyle ( ) : NumberStyles
return NumberStyles
 /// <summary>
 /// Convert float string value in float value
 /// </summary>
 /// <param name="strValue">string to convert</param>
 /// <param name="defaultValue">default value to return on convert error</param>
 /// <returns>float value</returns>
 public static float TryParseFloat(this string strValue, float defaultValue)
 {
     return(strValue.TryParseFloat(defaultValue,
                                   BasePrimitivesExtensions.GetDefaultFloatAllowDefaultConversion(),
                                   BasePrimitivesExtensions.GetDefaultFloatNumberStyle(),
                                   BasePrimitivesExtensions.GetCurrentCulture()));
 }
        /// <summary>
        /// <para>Try parse object float to float value</para>
        /// </summary>
        /// <param name="objValue">object to convert</param>
        /// <param name="defaultValue">default return value</param>
        /// <returns>float result</returns>
        public static float TryParseFloat(this object objValue, float defaultValue)
        {
            if (objValue == null)
            {
                return(defaultValue);
            }

            try
            {
                return(objValue.ToString().TryParseFloat(defaultValue,
                                                         BasePrimitivesExtensions.GetDefaultFloatAllowDefaultConversion(),
                                                         BasePrimitivesExtensions.GetDefaultFloatNumberStyle(),
                                                         BasePrimitivesExtensions.GetCurrentCulture()));
            }
            catch (Exception e)
            {
                Debug.WriteLine(e);
                return(defaultValue);
            }
        }
 /// <summary>
 /// Test if string value is a valid float value
 /// </summary>
 /// <param name="strValue">string value</param>
 /// <returns>true/false</returns>
 public static bool IsValidFloat(this string strValue)
 {
     return(strValue.IsValidFloat(
                BasePrimitivesExtensions.GetDefaultFloatNumberStyle(),
                BasePrimitivesExtensions.GetCurrentCulture()));
 }
 /// <summary>
 /// Convert float string value in float value
 /// </summary>
 /// <param name="strValue">string to convert</param>
 /// <param name="defaultValue">default value to return on convert error</param>
 /// <param name="allowZero">allow 0 valuen on convert</param>
 /// <returns>float value</returns>
 public static float TryParseFloat(this string strValue, float defaultValue, bool allowZero)
 {
     return(strValue.TryParseFloat(defaultValue, allowZero,
                                   BasePrimitivesExtensions.GetDefaultFloatNumberStyle(),
                                   BasePrimitivesExtensions.GetCurrentCulture()));
 }
 /// <summary>
 /// Parse string array in float array
 /// </summary>
 /// <param name="strValue">string to parse</param>
 /// <param name="defaultValue">default value when default tryparse</param>
 /// <param name="allowDefaultConversion">Allow default tryparse values</param>
 /// <returns>float array</returns>
 public static float[] TryParseFloatArray(this string strValue, float[] defaultValue, bool allowDefaultConversion)
 {
     return(strValue.TryParseFloatArray(defaultValue, allowDefaultConversion,
                                        BasePrimitivesExtensions.GetDefaultFloatNumberStyle(),
                                        BasePrimitivesExtensions.GetCurrentCulture()));
 }