LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find difference between two numbers (DBL)

Solved!
Go to solution

Hello All,

 

Is there a function in labview other than subtraction function that can find the difference between the two given numbers?

 

Thanks,

Davidson

0 Kudos
Message 1 of 16
(3,541 Views)

May be this.

difference.JPG

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 2 of 16
(3,532 Views)

Is that not still subtraction?

 

Alan

0 Kudos
Message 3 of 16
(3,526 Views)

You could extract mantissa and exponent. Then implement the bit-arithmetics on your own.

 

Felix

0 Kudos
Message 4 of 16
(3,511 Views)

Thanks for the replies..!!!

 

I tried a VI.

Please find the attached one and let me know if there is any case where it won't work. 🙂

Any suggestion on how to do this better is greatly appreciated!!!

 

Thanks,

Davidson

0 Kudos
Message 5 of 16
(3,500 Views)

You yourself have used subtract function.Smiley Mad

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 6 of 16
(3,494 Views)

I think what you are after is the 'Absolute' Value:

 

Absolute value.png

 

This will return the difference as a positive value.

 

Rgs,

 

Lucither.

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 7 of 16
(3,485 Views)

Hmmmmm...... Im not too sure if that is what you are after now after running your code???? What exactly are you on about?Smiley Surprised

 

Rgs,

 

Lucither

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 8 of 16
(3,483 Views)

I think if he wanted to find absolute value he would have mentioned it.

And not asked about other function for taking difference.

Do you want to fight over this? Smiley Very Happy When it is mentioned "DIFFERENCE" and not "ABSOLUTE" value.

Anyways..Will fight tomorrow. I am going home.

Best of luck Smiley Wink

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 9 of 16
(3,479 Views)

Ok.. 😉 I'll break it down 😉

 

I expect the difference between two numbers with sign.

 

In the VI snap, what will be the output for Numeric= (-1) and Numeric2 = (-5)

The output i expect is (-4).

 

I was thinking of labview function which can give me the exact difference;-)..

 

Thanks,

Davidson

0 Kudos
Message 10 of 16
(3,469 Views)