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
tex = real2tex(1.2345e-6, precision=2)
print(tex) # "1.23 \cdot 10^{\minus 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.1.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.1-py3-none-any.whl
(14.6 kB
view details)
File details
Details for the file real2tex-1.0.1.tar.gz.
File metadata
- Download URL: real2tex-1.0.1.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 |
6c4db963d0215537dd129710fcd3c0e6c360648075e74a708817f6acd70da1dc
|
|
| MD5 |
de117347be22c27ee68eaaf6ac4c7931
|
|
| BLAKE2b-256 |
d8b61c0393096f9edbfcc8cbcd8698d5464184a85cf606a5cb52169b346fe364
|
File details
Details for the file real2tex-1.0.1-py3-none-any.whl.
File metadata
- Download URL: real2tex-1.0.1-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 |
98b560830d788282c95aa545888cfe086a09b1d230075da7fb2d19defde7ef7e
|
|
| MD5 |
edf835fe8e85c5dd7909bd74ff7eb12e
|
|
| BLAKE2b-256 |
232c199d945a8a6b31209f4e83a378df2fb5ecff865001e029e3d4f5a4c18a28
|