Credence.Syntax.FixScientificNotation (credence v0.6.0)

Copy Markdown

Fixes Python-style scientific notation that is invalid in Elixir.

LLMs frequently translate Python's 1e-10 notation directly, but Elixir requires a decimal point before the exponent: 1.0e-10.

Bad (won't parse)

assert_in_delta result, 0.5, 1e-10

Good

assert_in_delta result, 0.5, 1.0e-10