fix optional parameters in number_format

fix issue #123