Re: Using Math function in zephyr
toggle quoted messageShow quoted text
What board is this for?
Huh, interesting. It works for me in a test program:
printf("round up: %f\n", round(1.9));
printf("round down: %f\n", round(3.1));
***** BOOTING ZEPHYR OS v1.10.99- - BUILD: Dec 21 2017 21:44:19 *****
round up: 2.000000
round down: 3.000000
This is on BOARD=qemu_cortex_m3 which uses the ARM soft float ABI. There's a chance that you've got a mix of hard float / soft float code but I thought the linker checked that.