Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
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