01-11-2011 05:24 AM
Hello All,
Is there a function in labview other than subtraction function that can find the difference between the two given numbers?
Thanks,
Davidson
Solved! Go to Solution.
01-11-2011 05:37 AM
May be this.
01-11-2011 05:48 AM
Is that not still subtraction?
Alan
01-11-2011 06:06 AM
You could extract mantissa and exponent. Then implement the bit-arithmetics on your own.
Felix
01-11-2011 06:24 AM
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
01-11-2011 06:33 AM
You yourself have used subtract function.
01-11-2011 06:39 AM
I think what you are after is the 'Absolute' Value:
This will return the difference as a positive value.
Rgs,
Lucither.
01-11-2011 06:40 AM
Hmmmmm...... Im not too sure if that is what you are after now after running your code???? What exactly are you on about?
Rgs,
Lucither
01-11-2011 06:46 AM - edited 01-11-2011 06:49 AM
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? When it is mentioned "DIFFERENCE" and not "ABSOLUTE" value.
Anyways..Will fight tomorrow. I am going home.
Best of luck
01-11-2011 06:51 AM
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