[cellml-discussion] Proposal: Standardised CellML real number format

David Nickerson david.nickerson at nus.edu.sg
Wed Sep 19 14:40:04 NZST 2007


> 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 or momayyez) followed by an 
> optional E or e character with a possible sign and one or more digits 
> after it.

probably best to allow for an optional '+' or '-' both at the start and 
following the exponent character.

I have no experience, but does using a non-EN locale make it difficult 
to enter numbers with a decimal point?


More information about the cellml-discussion mailing list