Skip to content

Commit

Permalink
Correct display
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlowryduda committed May 10, 2024
1 parent b3643e3 commit 6c3411a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lmfdb/maass_forms/web_maassform.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def exponential_form(mantissa, negative_exponent, digits_to_show=9):
"""
Format the number `mantissa * 10^(-negative_exponent)` nicely.
"""
mantissa = str(mantissa)
if negative_exponent == 0:
return mantissa[:digits_to_show]
return mantissa[:digits_to_show] + r" \cdot 10^{-" + str(negative_exponent) + "}"
Expand Down

0 comments on commit 6c3411a

Please sign in to comment.