06-13-2008 06:21 AM - edited 06-13-2008 06:23 AM
06-13-2008 07:02 AM - edited 06-13-2008 07:03 AM
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
06-13-2008 07:16 AM
JoeLabView wrote:
Hi Geir,
It is not a bug. ............
The node does not recognize localized decimal separators."
06-13-2008 07:33 AM
06-13-2008 08:38 AM
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.
06-13-2008 10:06 AM
hi there
try to compile
06-13-2008 10:37 AM
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
06-13-2008 12:12 PM
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)
06-13-2008 12:43 PM
06-13-2008 02:03 PM - edited 06-13-2008 02:09 PM
@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?