how do i ininitialize a float to it's max/min value?
Posted
by Faken
on Stack Overflow
See other posts from Stack Overflow
or by Faken
Published on 2010-04-21T16:09:13Z
Indexed on
2010/04/21
16:13 UTC
Read the original article
Hit count: 303
c++
|primitive-types
How do i hard code an absolute maximum or minimum value for a float or double? I want to search out the max/min of an array by simply iterating through and catching the largest.
There are also positive and negative infinity for floats, should i use those instead? if so, how do i denote that in my code?
© Stack Overflow or respective owner