Main Content

Test 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 test 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.

Floor

If the quotient is between two integers, the compiler rounds to the integer that is closer to negative infinity.

Undefined

The compiler does not round toward zero or negative infinity, or the compiler rounding behavior is undefined.

Programmatic Use

Property: TargetIntDivRoundTo
Values: 'Zero' | 'Undefined' | 'Floor'
Default: 'Zero'

Version History

Introduced in R2011a