We don’t have any API for printing floating point values. A quick solution to this could be to divide and modulo the value by precision (for example 10) that you would like in order to find the integer part of the floating point value, subtract the integer value from the original value so that you have only the decimal numbers and then multiply the floating point values with multiples of the precision (for example 10)depending on the decimal numbers of accuracy that you would like to have and then print both results as integers. After that, you can use the arch_printf() for printing.
嗨Jasu,
We don’t have any API for printing floating point values. A quick solution to this could be to divide and modulo the value by precision (for example 10) that you would like in order to find the integer part of the floating point value, subtract the integer value from the original value so that you have only the decimal numbers and then multiply the floating point values with multiples of the precision (for example 10)depending on the decimal numbers of accuracy that you would like to have and then print both results as integers. After that, you can use the arch_printf() for printing.
Thanks, PM_Dialog