docling-project / docling-project/docling

Docling from converting large float values into exponential notation

Open
#1,766 1 comment 0 reactions 0 assignees View on GitHub
question triage/close-stale
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
2d 21h
Merged PRs (30d)
84

Description

How can I prevent Docling from converting large float values like 1231486.34 into exponential notation (1.23149e+06) during extraction?

I'm using docling.document_converter to extract tabular or numerical data from documents, and I've noticed that numbers are sometimes automatically converted to scientific notation. This is causing issues in downstream processing where the exact float format needs to be preserved.

Is there a built-in option or setting in Docling to:

Disable scientific/exponential notation

Preserve original float formatting (e.g., 2 decimal places)

Or apply a custom float formatter during export (to JSON or Markdown)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.