Production Device Details: Signed integer division rounds to
Rounding for division of two signed integers
Description
App Configuration Pane: Hardware
Configuration Objects: coder.HardwareImplementation
Rounding by the compiler for the production hardware of the result of division of two signed integers.
Settings
Zero
This value is the default value.
If the quotient is between two integers, the compiler rounds to the integer that is closer to zero.
Undefined
If the quotient is between two integers, the compiler rounds to the integer that is closer to negative infinity.
Floor
The compiler does not round toward zero or negative infinity, or the compiler rounding behavior is undefined.
Programmatic Use
Property:
ProdIntDivRoundTo |
Values: 'Zero' |
'Undefined' | 'Floor' |
Default: 'Zero' |
Version History
Introduced in R2011a