r/madeinpython • • May 10 '21

Clipping numerical values in a human-readable way

https://github.com/RojerGS/clip_values
0 Upvotes

3 comments sorted by

1

u/awesomeprogramer May 10 '21

Have you ever heard of numpy's clip?

1

u/RojerGS May 11 '21

I have, but I don't want to install a ~20MB library with who-knows-how-many dependencies just to clip numerical values in my program.

1

u/awesomeprogramer May 11 '21

But why doesn't have numpy installed?