A package to handle binary fractions
Project description
Binary fractions
This is really small package to handle binary fractions.
It has 2 functions:
- float2bin, which converts floats to binary fractions represented in strings
- bin2float, which converts binary fractions represented in strings to floats
valid binary fraction: "100111.110001"
float2bin:
arguments: (float_number: float)
optional_argument: (binary_places: int) # This specifies the precision of the returned bin. Default 50
bin2float:
arguments: (bin_number: string)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
binary_fractions-0.0.3.tar.gz
(1.9 kB
view hashes)