On 9/1/2010 1:57 PM, Jos Timanta Tarigan wrote:
> hi,
>
> im trying to convert a decimal value from 0-1 to unsigned char. so since there
> are 256 value of unsigned char. how can i do that? i mean since you can only
> define unsigned char with 'a' or '@' which is not a math value, how can i
> convert those 0-1 decimal to unsigned char character?
>
> thanks in advance
>
>   =================================
> http://www.svnstrk.blogspot.com

'a' and '@' are mapped to underlying numeric representations in memory. 
  See any ASCII chart for a basic idea.  'unsigned char' typically holds 
8 bits of data.

-- 
Thomas Hruska
CubicleSoft President

Barebones CMS is a high-performance, open source content management 
system for web developers operating in a team environment.

An open source CubicleSoft initiative.
Your choice of a MIT or LGPL license.

http://barebonescms.com/

Reply via email to