Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 388693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:47:39+00:00 2026-05-12T15:47:39+00:00

for example i have two ranges (1) 0 to 3 (2) 10 to 15

  • 0

for example i have two ranges

                       (1) 0 to 3
                       (2) 10 to 15

in range (1) i have numbers between 0 and 3, where 0 is minimum and 3 is maximum value…(it has also values 1 and 2)…

now i wanted to rescale both ranges (1) and (2) to range 0 to 1. Can you show me how to do it or at least point to helpful sites? thanks a lot!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:47:40+00:00Added an answer on May 12, 2026 at 3:47 pm

    What you’re describing is called linear interpolation.

    For the general case, suppose you have a value c between a and b, and you want a value x between 0 and 1 which is based on c‘s relative position between a and b. The equation for x is as follows:

    x := (c - a) / (b - a)
    

    So if you have a value between 10 and 15 (let’s say 11), and you want a value between 0 and 1, you punch the values into the equation above:

    x := (11 - 10) / (15 - 10)
    x := 1/5
    

    In other words, 11 is one-fifth of the way from 10 to 15.


    The even more general case (when you have a value c between a and b and you want a value x between y and z), x is calculated as follows:

    x := (c - a) * (z - y) / (b - a) + y
    

    In your case, z = 1 and y = 0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two List's which I want to check for corresponding numbers. for example
Example: I have two shared objects (same should apply to .dlls). The first shared
I have two arrays of animals (for example). $array = array( array( 'id' =>
I have two websites, let's say they're example.com and anotherexample.net . On anotherexample.net/page.html ,
Simplified for example, I have two tables, groups and items . items ( id,
For example if I have an Enum with two cases, does it make take
I'm using the Silverlight UnitTest framerwork does anyone have a good example have how
Example: You have a shortcut s to SomeProgram in the current directory. In cmd.exe
Example I have Person , SpecialPerson , and User . Person and SpecialPerson are
I have example of code below. <script type=text/javascript src=assets/scripts/somescript.php>. </script> So, will my browser

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.