pccoeacm / all-calc

A calculator to calculate anything you can think of!
MIT License
1 stars 38 forks source link

MapValueToRange Function #38

Open pratik-dhende opened 4 years ago

pratik-dhende commented 4 years ago

Todo

Example

2 falls in the middle of 1 and 3, but what will be its value if we change the range to 0 and 1, then it will map to 0.5 in this range. MapValueToRange(original_value, original_min, original_max, new_min, new_max)

MapValueToRange(2, 1, 3, 0, 1) // Returns 0.5

I would like to work on this function.

Important

tejasborde commented 4 years ago

Can I work on this???

tejasmorkar commented 4 years ago

@pratik-dhende do you want to work on it? If not, I'll assign it to @Tejasborde2607

pratik-dhende commented 4 years ago

@tejasmorkar I want to work on this

tejasborde commented 4 years ago

@tejasmorkar Please assign this task to me because as of now I don't think anyone is working on this .

tejasmorkar commented 4 years ago

@pratik-dhende has opened the issue and wants to work on this so I'll assign this one to him 👍