Descobrir qual é o separador decimal

<< Click to Display Table of Contents >>

Navigation:  Mobile >

Descobrir qual é o separador decimal

Previous pageReturn to chapter overviewNext page

        public static char DecimalSeparator()

        {

            char c;

            System.Globalization.CultureInfo ci = System.Globalization.CultureInfo.CurrentUICulture;

            System.Globalization.NumberFormatInfo ni = (System.Globalization.NumberFormatInfo)

            ci.NumberFormat.Clone();

            c = (ni.NumberDecimalSeparator.ToCharArray())[0];

            return c;

        }