|
From: Philip B. <phi...@pb...> - 2007-06-07 16:03:25
|
Hi, Could anyone tell me the formula which is used to calculate the min and = max values for a numerical data type of x bytes? Say for instance that I = use the sizeof(datatype) function and get the answer 4, which is usually an = integer, how do I then programatically calculate the min and max values = for a signed and unsigned version of the data type respectively. Thanks in advance. Regards Philip Bennefall |