ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
Hi Geir,
It is not a bug. Here is what Labview Help says about the decimal point:
"Note The Formula Node accepts only the period (.) as a decimal separator. The node does not recognize localized decimal separators."
I realize it may be annoying, but you may need to convert the comma to decimal point before using the Formula Node.
You may do a product suggestion to add localized decimal seperators.
RayR
JoeLabView wrote:
Hi Geir,
It is not a bug. ............
The node does not recognize localized decimal separators."
Sorry to disappoint you! It's not a bug since that statement is absolutely valid albeit useless in that context.
@geirove wrote:
@JoeLabView wrote:
Hi Geir,
It is not a bug. ............
The node does not recognize localized decimal separators."
Of course it is a Bug: **Any** code that **any** compiler does not recognize, should be flagged with an error message ! I have written my share of compilers myself, and they all flag down code that is not accepted as an error.Failing to do so may cause serious, expensive and very hard to trace errors.Sorry, but I would expect that the NI team in their 20. year of LabView development is capable of better than this.
hi there
try to compile
rolfk said: Sorry to disappoint you! It's not a bug since that statement is absolutely valid albeit useless in that context.
That's right: as others have noted, the comma is the C comma or sequence operator. I'm just chiming in to note that "14" is valid because C is an expression-oriented language and "14" is an expression. Det goar!
If I were NI and had to implement C-like syntax for formula nodes, I'd make the implementation as close to C as possible.
--Marty
chrisger wrote:
...............with MS CV++, BCC, gcc and you'll get no error message (in MS VC++ not even a warning). It's not a bug, it's c syntax support (like rolfk said)
@geirove wrote:I understand this: But this is Labview: Who said they have to follow the same buggy path as C++ when they implemented the Formula Node Syntax?