Opened 15 years ago

Last modified 14 years ago

#1148 closed defect (fixed)

Incorrect interpretation of +., *., /., and -. in kernel command (from MathCore)

Reported by: Jan Brugård Owned by: Jan Brugård
Priority: normal Milestone:
Component: Version:
Keywords: Cc: Jan Brugård,

Description

When writing something like 1+.5 in the kernel command one would expect the answer 1.5, however the answer becomes 6 instead. The same problem occurs for *., /., and -.

Note that if a space is used in between the operator and the dot, e.g. 1+ .5, the result is correct.

Change History (2)

comment:2 by Martin Sjölund, 14 years ago

Fixed in r5917. MetaModelica real operation now need a space after them in order to parse. That is:
"+. X" = token PLUS and " X" left for next token
"+.X" = token PLUS and ".X" left for next token

Note: See TracTickets for help on using tickets.