Using floats with sprintf() in embedded C ... char str[100]; float adc_read = 678.0123; char *tmpSign = (adc_read < 0) ? "-" : ""; float tmpVal = (adc_read ...
確定! 回上一頁