Sometimes we expect fractional subunits (stock prices etc) but often we actually don't. A shopping comparison site will almost never expect fractional subunits.
I have therefore added the Monetize.expect_whole_subunits option. This will corrects the above scenario.
Parsing real world human input there's a common case where a single thousands separator is used.
For example at the moment, the following string parsings are incorrect (unless we're expecting fractional subunits)
Sometimes we expect fractional subunits (stock prices etc) but often we actually don't. A shopping comparison site will almost never expect fractional subunits.
I have therefore added the
Monetize.expect_whole_subunits
option. This will corrects the above scenario.All specs pass.