How do you print floating-point data in ZigBee 3.0?
float a =0.1;
DBG_vPrintf(TRUE, " a = %f " , a );
The print result is f, Why can't you print "a = 0.1"
Can you print floating-point data in Beyond Studio?
Hi Daniel, I hope you're doing well!
Printing floating point variables is resource intensive process, I would recommend as an alternative that you try multiplying the value by a factor of 10 so it can be more easily processed and printed to the debug console. To print an integer value you can use the standard printf format specifiers, such as %d or %i.
Please let me know if you have any further questions.
Thanks very much，Expanded multiple printing is effective
Retrieving data ...