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

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)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

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

Hashes for real2tex-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6d107f410f40e95fa4482151d7c7d31a8e8f29f6dc62f3c75d411d02e031aa44
MD5 7187db1d212b90af9cc298f810bb1e08
BLAKE2b-256 2c7734201991b04b430424591e666e68a250c8731763a45e65c9f128ebce83c6

See more details on using hashes here.

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

Hashes for real2tex-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01d547017a62e0e9b6f1f6919f5e2647529b1f337e96ecbed03f7c88573524a9
MD5 301c55146a3daa920d2979a4daa4b72a
BLAKE2b-256 9fe980f8a73af782fdd53b4a820e367a12b7138590346529b6f56df6390c1f53

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