Skip to main content

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

Release files for frash 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for frash 0.0.8
File Size Uploaded
frash-0.0.8.tar.gz 3.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for frash 0.0.8
File Interpreter ABI Platform
frash-0.0.8-py3.9.egg Legacy Egg format - - Details
frash-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / frash-0.0.8.tar.gz

Download URL frash-0.0.8.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
889c72cd0fa0c1ce6b33c64925d7b8ed79d7b8a2b88a4a3db99fba353a8ca197
BLAKE2b-256 checksum
How to use checksums
8cb2c92445610cd17d15ec948ab457dcd485feebc9b9e552b9e8092e1a021744
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / frash-0.0.8-py3.9.egg

Download URL frash-0.0.8-py3.9.egg
Size 4.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
c337e293a611dfd4145243600378d843414282e5d6eb98f80000e79af5cc610a
BLAKE2b-256 checksum
How to use checksums
b0b974f581495dfc5da1ac522956eb2a4a4a521deeb3aa0d6089bad1f4730c34
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / frash-0.0.8-py3-none-any.whl

Download URL frash-0.0.8-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dfae0f4d9d5bdbd69832e2954a59febb3d29c7c999781e184c59250b6762a0b
BLAKE2b-256 checksum
How to use checksums
7021f348a223bd9b84706398fb37faa657e0319ae4b982ab272166b83fe73032
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.8 This release

3 release files

0.0.7

1 release file

0.0.6

3 release files

0.0.5

2 release files

0.0.4

3 release files

0.0.3

3 release files

0.0.2

3 release files

0.0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page