Therefore, I think that we need to restrict it down to something like
(in regular expression syntax):
(\-|)[0-9]+(\.[0-9]+|)(E(-|)[0-9]+|e(-|)[0-9]+|)
In other words:
An optional - , followed by 1 or more digits from 0 to 9, followed by
an optional decimal point (not a comma
Hi all,
The CellML Specification does not define the format in which real
numbers will be represented at all (it just says, for initial_value:
The value of the |initial_value| attribute may be a real number or a
variable). The MathML specification defines
A real number is presented in decimal
David Nickerson wrote:
Therefore, I think that we need to restrict it down to something like
(in regular expression syntax):
(\-|)[0-9]+(\.[0-9]+|)(E(-|)[0-9]+|e(-|)[0-9]+|)
In other words:
An optional - , followed by 1 or more digits from 0 to 9, followed by
an optional decimal