This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cortex M4 Float to int: Round to Nearest / VCVTR?

Is there any way to convince the compiler to use the VCVTR command to convert floats to ints?

That would be extremely nice.

Currently the compiler seems to use always the VCVT, but this rounds towards zero.

With the VCVTR command it is possible to round automatically towards nearest integer ...

Any idea?

0