Handle precision in format specifier.

- Added handling of precision to extract_format.
- Updated docs.
- Added test case for precision.
Please also add tests for:

* '.2f' which is also a valid format.
* parsing actual values using this format variant