I am trying to perform 2 math equations in C and send the result as a char

x = 64*(pow(2,(conversionH/256))-1); // this is 64*(2^(conversionh/256)-1)

ConversionH is a char

the next one i need to use log base 2

y = 256*(log10(1+(MapIn/64))*3.321928); // so idealy this needs to be: 256*log2(1+(mapin/64)

MapIn is a char

so my inputs and outputs are char, but this dose not seen to work. Please can you help me.

thank you.