MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » March 2013

Re: One byte integer



fixed

Does anyone know what the performance considerations might be on using a char instead of an int? I know it's a generalization but usually int processing is faster than shorts and chars. Not sure if this has any application here, just curious.

In 3/26/2013 3:27 PM, Luis Rodriguez wrote:
Rob,

I believe that the OP stated somewhere that he needed to store a number
between 0 and 100. An one-byte integer field could allow between -127 and
128 if signed and between 0 and 255 if unsigned.

Regards,
Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact