Merge pull request #2 from frett/master

use a number instead of a string for the default value
cast the values to truly prevent the number_format warning