Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Rounding (SPEEDY-33, DSP Module)

LabVIEW DSP 8.2 Help
September 2006

NI Part Number:
371299B-01

»View Product Info

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

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit