Skip to main content

Uses a hyphen-minus character to visualize a fraction.

Project description

hyphenfrac

Uses a hyphen-minus character to visualize a fraction.

Usage

Displaying a fraction

>>> import hyphenfrac, random
>>> hyphenfrac.display(random.randint(1, 100)/random.randint(1, 100))
20
-- + 1
49
>>>

You may also assign this value to a variable

>>> import hyphenfrac
>>> foo = hyphenfrac.make_pretty(1, 10)
>>> print(foo)
1
--
10
>>>

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

hyphenfrac-1.0.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

hyphenfrac-1.0-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

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