Steven Cohen

floating point math in hc08

Discussion created by Steven Cohen on Jun 2, 2007
Latest reply on Jun 3, 2007 by Steven Cohen
I am trying to perform this multiplication:
 dac_val = (float)*(Uart_ptr + 9) * 1e4;
 
When I include 1e4 instead of 10000 I get errors:
symbol _dufloat undefined
symbol _dmul_rc undefined
symbol _dstrunc undefined
 
What should I include for this to work? 

Outcomes