Skip to main content

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


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.2.tar.gz (1.7 kB view hashes)

Uploaded Source

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