Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Float Range is a range-like generator for float numbers

Project Description

Float Range

Float Range is a range-like generator for float numbers.

Usage

import float_range

for i in float_range.range(10):
    print(i, end=' ')
# >>> 0 1 2 3 4 5 6 7 8 9

for i in float_range.range(1, 5, 0.5):
    print(i, end=' ')
# >>> 1 1.5 2.0 2.5 3.0 3.5 4.0 4.5

for i in float_range.range(5, 1.5, -0.7):
    print(i, end=' ')
# >>> 5 4.3 3.6 2.9 2.2

Installation

Simply

$ pip install float_range

and you are good to go.

P.S.: If installing from outside of a virtualenv you may need to prefix that with sudo though.

Requirements

Tests run against CPython 2.6+ and 3.2+. Also Pypy (2.7) and Pypy3 (3.3) are supported. However it may run smoothly on any Python 2.3+ implementation.

Release History

Release History

This version
History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
float_range-0.1.3.tar.gz (1.4 kB) Copy SHA256 Checksum SHA256 Source Apr 6, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting