1/5 as a decimal..would .2 work?

Or does it hve to be .20

2 Answers

  • 8 years ago
    Favorite Answer

    I dont think it matters

    if you do

    dim decThis as decimal = 1/5

    the compiler will divide 1/5 into .2

    but in my code i always do

    float this = .2;

  • 8 years ago

    If you were talking money, then you need the .20. But in other situations .2 will do.

Still have questions? Get your answers by asking now.