
4 May
2010
4 May
'10
2:47 p.m.
on 04.05.2010 at 18:22 Stewart, Robert wrote :
DE wrote:
Stewart, Robert wrote :
DE wrote:
typedef std::numeric_limits<type> traits; const type realy_min = traits::is_integer ? traits::min() : -traits::max();
That only works for unsigned types.
it does work for bounded signed and unsigned integers, unbounded unsigned integers and also for floating point values (with denormalization)
Signed integer types use two's complement, so the absolute value of the largest positive and largest negative value differs.
so what? honestly i don't catch your point -- Pavel P.S. if you notice a grammar mistake or weird phrasing in my message please point it out