[Python] Python json.dump scientific notation formatting

Discussão em 'Python' iniciado por Stack, Novembro 27, 2024.

  1. Stack

    Stack Membro Participativo

    Due to suspected platform differences between developers, json.dump is formatting scientific notations in different ways (one person's machine, it formats to 1e-6, and on others it formats to 1e-06). The files are committed to our git history, so having to constantly revert the changes is annoying.

    Is there a way to control how scientific numbers are formatted?

    Continue reading...

Compartilhe esta Página