Metadata-Version: 2.1
Name: limited-numbers
Version: 1.1.0
Summary: A simple package to limit numbers to a marked area (can be used to simulate number overflows)
Home-page: https://github.com/Oakchris1955/limited-numbers
Author: Oakchris1955
License: MIT
Project-URL: Bug Tracker, https://github.com/Oakchris1955/limited-numbers/issues
Keywords: numbers,number,limit,limited
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Limited Numbers

A simple library made with Python

## Installation

### Windows

```sh
pip3 install limited-numbers
```

### Linux

```sh
python3 -m pip install limited-numbers
```

## Usage

You can use to simulate number overflows (useful if you wanna simulate x-bit numbers)

```py
from limited_numbers import Int

#let's simulate a 8-bit number
number = Int(255) 
'''Int takes 1 positional and 2 keyword arguments. The positional parameter is the number limit after which overflows. The other 2 are to set the number to else than 0 and the other is the lower limit (begin_from)'''

#increase by 1
number += 1

#loop until it overflows
while number!=0:
    print('Number: {}').format(number.get()) #or number.number 
    #PS. Used .format above so that the code is highlighted in Markdown
    number+=1
```

You can also subtract from the number

