Hi, everyone
How do you print floating-point data in ZigBee 3.0?
for example
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.
Best regards,
Sebastian
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.
Best regards,
Sebastian
Thanks very much,Expanded multiple printing is effective