There are inherent differences between digital signal processors (DSPs) and general purpose processors, such as the processors in desktop PCs.
The SPEEDY-33 target and LabVIEW perform floating-point to integer conversions differently because of the way DSPs and LabVIEW round the values.
For example, the To Long Integer function rounds all floating-point numeric values to the nearest integer when the VI is open in a My Computer application instance. If the fractional part of the floating-point value is .5, the function rounds the value to the nearest even integer. For example, the function rounds 13.5 to 14 and rounds 14.5 to 14.
The SPEEDY-33 rounds the value to the nearest integer, which is not necessarily the nearest even integer. Refer to the following table for an example of the difference in rounding.
| Value | SPEEDY-33 | Windows |
|---|---|---|
| 8.5 | 9 | 8 |
| 9.5 | 10 | 10 |