fix number parsing in calculator (support e notation)

this fixes contrast/brightness going bonkers
calculator: bring back support for "," as decimal mark
Merge pull request #736 from parafin/macosx

fix number parsing in calculator (support e notation)