Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  04 Jul 2019, Lukas Gerritzen, Info, Limitations of MSL 
    Reply  05 Jul 2019, Konstantin Olchanski, Info, Limitations of MSL 
       Reply  08 Jul 2019, Stefan Ritt, Info, Limitations of MSL 
          Reply  08 Jul 2019, Lukas Gerritzen, Info, Limitations of MSL 
             Reply  08 Jul 2019, Konstantin Olchanski, Info, Limitations of MSL 
                Reply  09 Jul 2019, Stefan Ritt, Info, Limitations of MSL 
          Reply  08 Jul 2019, Konstantin Olchanski, Info, Limitations of MSL 
          Reply  16 Jul 2019, Lukas Gerritzen, Info, Limitations of MSL 
             Reply  30 Jul 2019, Stefan Ritt, Info, Limitations of MSL 
Message ID: 1621     Entry time: 16 Jul 2019     In reply to: 1594     Reply to this: 1638
Author: Lukas Gerritzen 
Topic: Info 
Subject: Limitations of MSL 
Dear Stefan,

another thing which does not work is the comparison of floating point numbers.

The script:

IF 1.1 > 1.0 
    MESSAGE "foo" 
ENDIF 

Produces an error "Invalid number in comparison". This is due to isdigit() being used to find the numerical values in the condition at progs/msequencer.cxx:343.

Would it be possible to add something like the following?
 343 if (!isdigit(value1_var[i]) && value1_var[i] != '.')
 344          break;
Which would only leave open a problem with some string like "2.3.4"

Cheers
Lukas
ELOG V3.1.4-2e1708b5