locked
Them Maximum value for float RRS feed

  • Question

  • I'm trying to find out what is the maximum value that a float can accept, for that I have this small solution. However the program does not print anything, what am I doing wrong?
    float f;
    for (f = 3.0F; (f < float.MaxValue) && (f >= 0.0); f++)
    {}
    Console.WriteLine("Them Maximum value for float is (+)(-): {0}", f);

    What I would like to know is the maximum value a numerical value type can hold.

    One more question, the default language in this fórum is Spanish, so the words I type here are classified as miss spelled by the spell-checker. How can I change the dafault language to English?

    Look at these words

    Corazón, Camaleón, anécdota, cañón, this language is driving me craizy!

    TIA

    Wednesday, May 1, 2013 10:57 AM

Answers

All replies