Usage

edit
{{User:Dinnerbone/isformatted|number here}}

This will return 1 for a formatted number (ie, 1,234) and 0 for a plain number (ie, 1234)