Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scientific notation #231

Open
qwertyjl opened this issue Sep 17, 2022 · 3 comments
Open

scientific notation #231

qwertyjl opened this issue Sep 17, 2022 · 3 comments

Comments

@qwertyjl
Copy link

In my opinion latexify(3e-14) should display $3.0 \cdot 10^{-14}$, not $3.0e-14$

@gustaphe
Copy link
Collaborator

Agreed.

There is fmt=FancyFormatter(), but I also think this should be the default.

@baggepinnen
Copy link

One more +1 here, this is actually not only a formatting issue, but a correctness issue since the rendered latex in this case

julia> latexify("1e-7 - e")
L"$1.0e-7 - e$"

equal to -7, according to the latex rendered below
$1.0e-7 - e$

@korsbo
Copy link
Owner

korsbo commented Nov 22, 2022

Ok, agreed. This should be the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants