maxvalue

Hi guys,

 

very beginner 's question, what's the meaning of maxvalue at here? what is the return?0.99?

 

Dim X As Double = Double.MaxValue

 

thanks!

 

  • up

    David Rutten

    Double.MaxValue, Single.MaxValue, Integer.MaxValue etc. etc. are all properties that return the highest possible valid number that can be represented by a specific numeric type. These will not be 'nice' numbers in base-10 because most of those types are based on base-2 logic.

    If you want to know what number is represented by Double.MaxValue, you can always create one and display it or you can google it.

    --

    David Rutten

    david@mcneel.com

    Poprad, Slovakia

    3