Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

real2tex-1.0.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

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

Hashes for real2tex-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6c4db963d0215537dd129710fcd3c0e6c360648075e74a708817f6acd70da1dc
MD5 de117347be22c27ee68eaaf6ac4c7931
BLAKE2b-256 d8b61c0393096f9edbfcc8cbcd8698d5464184a85cf606a5cb52169b346fe364

See more details on using hashes here.

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

Hashes for real2tex-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98b560830d788282c95aa545888cfe086a09b1d230075da7fb2d19defde7ef7e
MD5 edf835fe8e85c5dd7909bd74ff7eb12e
BLAKE2b-256 232c199d945a8a6b31209f4e83a378df2fb5ecff865001e029e3d4f5a4c18a28

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page