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

Using the Quotient & Remainder Function (DSP Module)

LabVIEW DSP Module 2.5 Help
August 2007

NI Part Number:
371300C-01

»View Product Info

Digital signal processors (DSPs) and general-purpose processors, such as the processors in desktop computers, differ from each other.

The Quotient & Remainder function in a DSP application returns different values than in a Windows application when the x input is a negative number. The floor(x/y) (quotient) in a DSP application is one greater than the floor(x/y) in a Windows application. The x-y*floor(x/y) (remainder) is a negative number in a DSP application and a positive number in a Windows application.

For example, in the following figure the x input is –25 and the y input is 10.

The following table lists the output values for a Windows application and a DSP application.

Windows DSP
Value of remainder5-5
Value of quotient-3-2

Resources


 

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