04-25-2011 04:30 PM - edited 04-25-2011 04:32 PM
I found this in a third party driver.
In the error case, it looks like the programmer wanted to output a Not a Number value. Okay, that makes sense.
But instead of using an NaN value in a constant, why don't we just take the square root of -1?
04-25-2011 07:54 PM
OOoooooooooooooohhhh
That's just getting nasty ... or quite imaginative... Don't know which one to attribute that one to..
04-26-2011 07:16 AM
The fact that you can type NaN into the numeric constant is not obvious.
04-26-2011 09:11 AM - edited 04-26-2011 09:24 AM
@tst wrote:
The fact that you can type NaN into the numeric constant is not obvious.
True. Many years ago I suggested to add a NaN constant to the numeric palette, e.g. next to the +Inf, -Inf constants. (That was way before the ideas exachange)
04-28-2011 03:40 PM
@Ravens Fan wrote:
I found this in a third party driver.
In the error case, it looks like the programmer wanted to output a Not a Number value. Okay, that makes sense.
But instead of using an NaN value in a constant, why don't we just take the square root of -1?
I've done that
05-03-2011 07:40 AM
@Jeff Bohrer wrote:
@Ravens Fan wrote:
I found this in a third party driver.
In the error case, it looks like the programmer wanted to output a Not a Number value. Okay, that makes sense.
But instead of using an NaN value in a constant, why don't we just take the square root of -1?
Spoiler
I've done that
Maybe you did do that.
05-03-2011 09:02 AM
I'd NEVER leave a terminal as icon-
05-05-2011 07:45 AM
A classic Rube Goldberg: http://forums.ni.com/t5/LabVIEW/Conversion-d-un-String-en-tableau-de-doubles/m-p/1548410
05-05-2011 08:48 AM
Another RG that can be simplified using our friendly Regular Expressions:
http://forums.ni.com/t5/LabVIEW/search-and-split-the-string/m-p/1548356
05-05-2011 11:56 AM
Oftentimes when using Search and Replace, a while loop is used when you can simply Replace All.
spotted here