Converts a number to a LaTeX string in scientific notation.
Project description
real2tex
real2tex is a Python module that converts a real number
to a string of LaTeX code that represents the number
in scientific notation.
Installation
pip install real2tex
Usage
from real2tex import real2tex
real2tex(1.2345e-6, precision=2) # "1.23 \\times 10^{-6}"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
real2tex-1.0.0.tar.gz
(14.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
real2tex-1.0.0-py3-none-any.whl
(14.6 kB
view details)
File details
Details for the file real2tex-1.0.0.tar.gz.
File metadata
- Download URL: real2tex-1.0.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d107f410f40e95fa4482151d7c7d31a8e8f29f6dc62f3c75d411d02e031aa44
|
|
| MD5 |
7187db1d212b90af9cc298f810bb1e08
|
|
| BLAKE2b-256 |
2c7734201991b04b430424591e666e68a250c8731763a45e65c9f128ebce83c6
|
File details
Details for the file real2tex-1.0.0-py3-none-any.whl.
File metadata
- Download URL: real2tex-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01d547017a62e0e9b6f1f6919f5e2647529b1f337e96ecbed03f7c88573524a9
|
|
| MD5 |
301c55146a3daa920d2979a4daa4b72a
|
|
| BLAKE2b-256 |
9fe980f8a73af782fdd53b4a820e367a12b7138590346529b6f56df6390c1f53
|