Skip to main content

Juggling with hex numbers. Convert integers and floats to hex.

Project description

frash

Juggling with hex numbers.

With frash you can convert integers and floats to their hexadecimal equivalent.

Below you can find some examples.

Install

pip install frash

Usage

bash> frash 255
$ 0xff

bash> frash 255.
$ 0x1.fep7

bash> frash 98.2
$ 0x1.88ccccccccccdp6

bash> frash -r 0x1.88ccccccccccdp6
$ 98.2

bash> frash -r 0x2.p7
$ 256

bash> frash -r 1.8p0
$ 1.5

bash> frash -r 1.8
$ 1.5

bash> frash -r 0x1.8
$ 1.5

bash> frash -r 0x1.8p+1
$ 3

bash> frash -r 0x1.8p-2
$ 0.375

bash> frash -r .de
$ 0.867188

bash> frash -r abap1
$ 5492

bash> frash -r ABAP1
$ 5492

bash> frash 1e3
$ 0x1.f4p9

bash> frash 1e-4
$ 0x1.a36e2eb1c432dp-14

Octal Integers

There is a limited support for octal integer numbers.

bash> frash -o 8
$ 0o10

bash> frash -r -o 010
$ 8

bash> frash -r -o 0o10
$ 8

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

frash-0.0.8.tar.gz (3.1 kB view details)

Uploaded Source

Built Distributions

frash-0.0.8-py3.9.egg (4.6 kB view details)

Uploaded Source

frash-0.0.8-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file frash-0.0.8.tar.gz.

File metadata

  • Download URL: frash-0.0.8.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for frash-0.0.8.tar.gz
Algorithm Hash digest
SHA256 889c72cd0fa0c1ce6b33c64925d7b8ed79d7b8a2b88a4a3db99fba353a8ca197
MD5 1c8200801d77ea0c84bbcf0fd643ddfd
BLAKE2b-256 8cb2c92445610cd17d15ec948ab457dcd485feebc9b9e552b9e8092e1a021744

See more details on using hashes here.

File details

Details for the file frash-0.0.8-py3.9.egg.

File metadata

  • Download URL: frash-0.0.8-py3.9.egg
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for frash-0.0.8-py3.9.egg
Algorithm Hash digest
SHA256 c337e293a611dfd4145243600378d843414282e5d6eb98f80000e79af5cc610a
MD5 fdfc8f37ae966bb0808abe6dd2f348ae
BLAKE2b-256 b0b974f581495dfc5da1ac522956eb2a4a4a521deeb3aa0d6089bad1f4730c34

See more details on using hashes here.

File details

Details for the file frash-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: frash-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for frash-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0dfae0f4d9d5bdbd69832e2954a59febb3d29c7c999781e184c59250b6762a0b
MD5 4542e0eb619c36476da4c4f8d92e6cdb
BLAKE2b-256 7021f348a223bd9b84706398fb37faa657e0319ae4b982ab272166b83fe73032

See more details on using hashes here.

Supported by

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