Handle precision in format specifier.

- Added handling of precision to extract_format.
- Updated docs.
- Added test case for precision.