How to print a float value in segger embedded studio?
I am using nrf5_sdk17.1.0 version
I have used the below statement but it is outputting 0 only always.
NRF_LOG_INFO("sqrtf(VectorDotProduct(pfJ, pfJ)): %d",sqrtf(VectorDotProduct(pfJ, pfJ)));
and no value is showing for the below statement.
NRF_LOG_INFO("sqrtf(VectorDotProduct(pfJ, pfJ)): %f",sqrtf(VectorDotProduct(pfJ, pfJ)));
Thanks.