02-13-2013 04:11 AM
Wait there is a bug. Let me fix it & post new VI.
02-13-2013 04:19 AM
Hi GerdW,
Thanks for your valuable feedback on my VI. I know i should not compare floating points. But when application demands then on option for me.
02-13-2013 04:20 AM
Try this & let me know if you found any other bug
02-13-2013 04:22 AM
Hi Henok,
Please remove break point then run this VI.
02-13-2013 04:28 AM - edited 02-13-2013 04:30 AM
Hi Ranjeet,
instead of rounding up you should simply compare to "greater or equal":
Also remember: Adding small fractional numbers repeatedly (like you do) will introduce numeric errors due to floating point accuracies...
02-13-2013 04:38 AM
This is also another way to do it. I found that, you found this & both are copyright. Just kidding .
Nice job but i dont think that this will generate numeric error becasue the precision is 1 digit only. So may be, i am not sure..
02-13-2013 04:40 AM
02-13-2013 04:49 AM
I see! Big lesson learned for myself here. I would watchout not to make this mistake in the future myself.
But thanks both of you guys!
I can scale up your solution, GerdW, to fit my need and that way it is perfect for my testing as I'd be able to know what to look for in my test results.
Good day!
02-13-2013 05:01 AM
Hi,
I run it and worked fine for 0.1 but when I tried for precision of 0.01, it just gave one decimal point counts.
02-13-2013 05:05 AM