Long time, no see I am passing through a very big change, I was pretty much off-line in the previous months.
I just want to announce a very simple package called PrettyNumbers.jl. The idea is to format numbers in many back-ends (text, HTML, LaTeX, etc.), allowing, for example, to change the decimal base easily. Currently, only the text back-end exists.
Depending on the size of the satellite, you want to see the results in a different unit (10^-3 Nm, or 10^-5 Nm, and so on). Hence, with PrettyNumbers.jl I can now do this very easily by just using a keyword argument in the function.
If the point is used as the decimal sign, the cross and not the half-high dot should be used as the multiplication sign between numbers expressed with digits. If the comma is used as the decimal sign, both the cross and the half-high dot may be used as the multiplication sign between numbers expressed with digits.
Perhaps having at least an option of this
julia> pretty_number(1906.1896)
1.90619 × 10³
will be great. If not even having this format as default.
This proposal is more or less what I would do to pretty print a matrix. If you want something more “mathematical” but a little bit more verbose, you can use tf = tf_matrix:
┌ ┐
│ 1 ⋅ 10⁻³ 2 ⋅ 10⁵ │
│ ¹⁹/₈₆ -1 ⋅ 10⁻³ │
└ ┘
Good point! This should be very easy. I just need to add a new renderer for Irrational{:π}. I will try
It looks like Julia adopted the unicode character which is recommended as the natural exponent. And that’s inconsistent with the ISO standard. From https://unicode.org/charts/PDF/U2100.pdf :
212F ℯ SCRIPT SMALL E
= error
= natural exponent
≈ 0065 e latin small letter e