How to get the size, min and max of float Data Type in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(sizeof(float));
            Console.WriteLine(float.MinValue);
            Console.WriteLine(float.MaxValue);
        }
    }
}


/*
run:
    
4
-3.402823E+38
3.402823E+38

*/

 



answered Dec 10, 2016 by avibootz

Related questions

1 answer 196 views
1 answer 175 views
1 answer 176 views
1 answer 154 views
1 answer 165 views
1 answer 183 views
1 answer 157 views
...