skip to navigation
skip to content

Franges 0.1.0

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

Latest Version: 1.0.2

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

 
File Type Py Version Uploaded on Size
Franges-0.1.0-py2.7.egg (md5) Python Egg 2.7 2012-12-18 5KB
Franges-0.1.0-py3.2.egg (md5) Python Egg 3.2 2012-12-18 5KB
Franges-0.1.0.zip (md5) Source 2012-12-18 6KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 0 downloads in the last week
  • 160 downloads in the last month