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.88ccccccccccdp
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
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.4.tar.gz
(2.9 kB
view details)
Built Distributions
frash-0.0.4-py3.9.egg
(4.1 kB
view details)
frash-0.0.4-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file frash-0.0.4.tar.gz
.
File metadata
- Download URL: frash-0.0.4.tar.gz
- Upload date:
- Size: 2.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f89b06ef150207dc6e5657e9ae2e68cd306273b609104ccbc80b44b5df623d0c |
|
MD5 | 563c304186fbde88afe70fe1f30d7970 |
|
BLAKE2b-256 | 5a395d1bd867dfeec84738773d569b078d4326cc3ff17c496e5798af59efe882 |
File details
Details for the file frash-0.0.4-py3.9.egg
.
File metadata
- Download URL: frash-0.0.4-py3.9.egg
- Upload date:
- Size: 4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1142143b35f56600a3a33d553b458a0d8e58c36ee858aa6bbcf4c469e96d0fd |
|
MD5 | 149c8da25a475db78be21f41b47edfbf |
|
BLAKE2b-256 | 353691c8ec3a368e81b7e33efc519493204c9c74c9a0e8eacc7be6cc512e4746 |
File details
Details for the file frash-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: frash-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21cd5ecf1ff007f4a1ed970f3e43706f74ccdd18a134adc4027c38ebb2092e4a |
|
MD5 | cda9db26b7183345004ecb5c8df33dce |
|
BLAKE2b-256 | f57f64735ca881ec83e34dda5e44e618c63764ba60a27e4b8bd385efb13a7157 |