Skip to main content

Franges adds support for floating point and fixed precision (Decimal) range generator functions.

Project description

Franges adds support for floating point and fixed precision (Decimal) range generator functions.

Installation

pip install Franges

OR

easy_install Franges

OR

python setup.py install

Usage

#!/usr/bin/env python

from franges import drange, frange

for x in drange(0,2,0.1, precision = 6):
print(x)
for x in frange(0,2,0.1):
print(x)

list(drange(0,1,0.1, 6)) # [0, 0.1, 0.2, … , 0.9]

list(frange(1,0,-0.2)) # [1.0, 0.8, 0.6, 0.3999999999999999, 0.19999999999999996]

list(drange(1,0,-0.2,6)) # [1.0, 0.8, 0.6, 0.4, 0.2]

Contributors

Nisan Haramati nisan@pof.com hanisan@gmail.com

Project details


Release history Release notifications

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

This version
History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Franges-0.1.0-py2.7.egg (6.1 kB) Copy SHA256 hash SHA256 Egg 2.7 Dec 18, 2012
Franges-0.1.0-py3.2.egg (6.1 kB) Copy SHA256 hash SHA256 Egg 3.2 Dec 18, 2012
Franges-0.1.0.zip (6.5 kB) Copy SHA256 hash SHA256 Source None Dec 18, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page