David Boyd Posted September 13, 2006 Report Share Posted September 13, 2006 Hello all- Was having this discussion with my coworker today, and he swears he saw a clever example of this somewhere - the task at hand is to convert doubles to strings for eventual display in a table. I regularly use NaN to indicate lack of a measured value, and I was lamenting all the extra nodes it takes, to test for isNaN?, then a select node, and an empty string constant, just to suppress the 'NaN' text, which is meaningless to my end users. Plus, while I want to format multiple doubles into a row of the table, I can't use an expandable Format Into String node if I need to do this testing and selecting. So, is there some undocumented format code to conditionally format an NaN? Or is he confusing this with Excel's conditional formatting? Best regards, Dave Quote Link to comment
Michael Aivaliotis Posted September 13, 2006 Report Share Posted September 13, 2006 Why not use the Search and Replace? Quote Link to comment
Mikkel Posted September 13, 2006 Report Share Posted September 13, 2006 Why not use the Search and Replace? What about: -Mikkel Quote Link to comment
David Boyd Posted September 13, 2006 Author Report Share Posted September 13, 2006 Why not use the Search and Replace? (Insert head-smack noise here.) Doh! Michael, sometimes the obvious solution just doesn't occur to me... This method looks to be clean and 100% reliable - after all, NaN always gets converted to the string "NaN", so it's a cinch to do the fixup in the string. Thanks a bunch! Dave Quote Link to comment
Aristos Queue Posted September 14, 2006 Report Share Posted September 14, 2006 Slight modification to Michael's example... I found out recently that I could connect an array of strings to Concatenate String. So to easily handle an array of doubles... 1 Quote Link to comment
PJM_labview Posted September 14, 2006 Report Share Posted September 14, 2006 Slight modification to Michael's example... I found out recently that I could connect an array of strings to Concatenate String. So to easily handle an array of doubles... Nice! :thumbup: I did not know that either. PJM Quote Link to comment
Ton Plomp Posted September 14, 2006 Report Share Posted September 14, 2006 Nice! :thumbup: I did not know that either. PJM So that means no more shift register!! Ton Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.