New Tool Radar

AI PDF

How to Check Decimal Separators in OCR Output from a Scanned Document

Check whether OCR reads decimal commas as decimal points, or the other way round, in a scanned document.

Schematic illustration of a decimal separator check: run OCR, read the five amounts, and compare each separator with the printed page.

Some countries write 12,50 and others write 12.50, and OCR can normalise one into the other or drop the separator entirely, turning 12.50 into 1250. The check is to compare the OCR numbers with the printed page, separator and all. This guide checks five numbers on one European invoice.

Prerequisites

A scanned document that uses decimal commas and an OCR tool. Note the document locale before starting, since it decides which separator is correct.

Steps

1. Run OCR on the document

Run OCR on the document and save the text. Expected result: the five amounts become selectable text.

2. Read the five amounts from the OCR text

Read each amount from the OCR text exactly as printed, separator included. Expected result: five amounts, each with a decimal comma.

3. Compare each separator with the printed page

Compare each OCR amount with the printed page. Expected result: all five amounts keep the decimal comma.

4. Record any separator OCR changed

Record every amount whose separator OCR changed or dropped. Expected result: a note that lists the errors or confirms all five matched.

Practice check: fictional German invoice with decimal commas, 2026-11-25

The table below is fictional practice material. It lists the five amounts and the separator each must keep.

Item As printed
Paper 12,50
Ink 24,80
Lamps 37,20
Cables 9,95
Delivery 6,40

Expected result. all five OCR amounts keep the decimal comma, matching the printed invoice.

Limits

  • A separator that survives OCR can still be misread by the spreadsheet that imports the text, so check the numbers again after import.
  • UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.

Sources

See all