Skip to content

boundary case support (min max same vals)#1

Open
yavuzmester wants to merge 2 commits intosuperandrew213:masterfrom
yavuzmester:master
Open

boundary case support (min max same vals)#1
yavuzmester wants to merge 2 commits intosuperandrew213:masterfrom
yavuzmester:master

Conversation

@yavuzmester
Copy link

when min and max values in the range are equal, the function returns NaN.
However a user may want to call for ex:
normalize([100, 100], 100)
and get either 0.5, or 0, or 1, or something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant