Convert any positive number to decimal $x$ such that $0lt x lt 1$.

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












This is a very basic question, I understand that.



So I have these numbers: 20, 0.75, 1.25. If you sort them, it would look like this:



20
1.25
0.75


I need to convert any number that's greater than 1 to a decimal that's less than 1 and greater than 0, and still sort like above.



So I thought about dividing 1 by that number. But naturally, that's not going to work with the 0.75, so 0.75 will be greater than 20.



So what formula can I apply to any positive number so that they all are less than 1 and greater than 0, and they still sort correctly with this new value (i.e. #1: 20, #2: 1.25, #3: 0.75)







share|cite|improve this question





















  • Is there a minimum and maximum value that your numbers can take?
    – Jared Goguen
    Aug 6 at 18:01






  • 3




    Part of the question says "any number that's greater than 1," and another part says "apply to any number." You should probably reconcile these two different criteria, especially since the chosen answer fulfills one of them and not the other.
    – John
    Aug 6 at 18:03














up vote
-1
down vote

favorite












This is a very basic question, I understand that.



So I have these numbers: 20, 0.75, 1.25. If you sort them, it would look like this:



20
1.25
0.75


I need to convert any number that's greater than 1 to a decimal that's less than 1 and greater than 0, and still sort like above.



So I thought about dividing 1 by that number. But naturally, that's not going to work with the 0.75, so 0.75 will be greater than 20.



So what formula can I apply to any positive number so that they all are less than 1 and greater than 0, and they still sort correctly with this new value (i.e. #1: 20, #2: 1.25, #3: 0.75)







share|cite|improve this question





















  • Is there a minimum and maximum value that your numbers can take?
    – Jared Goguen
    Aug 6 at 18:01






  • 3




    Part of the question says "any number that's greater than 1," and another part says "apply to any number." You should probably reconcile these two different criteria, especially since the chosen answer fulfills one of them and not the other.
    – John
    Aug 6 at 18:03












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











This is a very basic question, I understand that.



So I have these numbers: 20, 0.75, 1.25. If you sort them, it would look like this:



20
1.25
0.75


I need to convert any number that's greater than 1 to a decimal that's less than 1 and greater than 0, and still sort like above.



So I thought about dividing 1 by that number. But naturally, that's not going to work with the 0.75, so 0.75 will be greater than 20.



So what formula can I apply to any positive number so that they all are less than 1 and greater than 0, and they still sort correctly with this new value (i.e. #1: 20, #2: 1.25, #3: 0.75)







share|cite|improve this question













This is a very basic question, I understand that.



So I have these numbers: 20, 0.75, 1.25. If you sort them, it would look like this:



20
1.25
0.75


I need to convert any number that's greater than 1 to a decimal that's less than 1 and greater than 0, and still sort like above.



So I thought about dividing 1 by that number. But naturally, that's not going to work with the 0.75, so 0.75 will be greater than 20.



So what formula can I apply to any positive number so that they all are less than 1 and greater than 0, and they still sort correctly with this new value (i.e. #1: 20, #2: 1.25, #3: 0.75)









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Aug 7 at 16:35









Mike Pierce

11k93574




11k93574









asked Aug 6 at 14:54









rbhat

1206




1206











  • Is there a minimum and maximum value that your numbers can take?
    – Jared Goguen
    Aug 6 at 18:01






  • 3




    Part of the question says "any number that's greater than 1," and another part says "apply to any number." You should probably reconcile these two different criteria, especially since the chosen answer fulfills one of them and not the other.
    – John
    Aug 6 at 18:03
















  • Is there a minimum and maximum value that your numbers can take?
    – Jared Goguen
    Aug 6 at 18:01






  • 3




    Part of the question says "any number that's greater than 1," and another part says "apply to any number." You should probably reconcile these two different criteria, especially since the chosen answer fulfills one of them and not the other.
    – John
    Aug 6 at 18:03















Is there a minimum and maximum value that your numbers can take?
– Jared Goguen
Aug 6 at 18:01




Is there a minimum and maximum value that your numbers can take?
– Jared Goguen
Aug 6 at 18:01




3




3




Part of the question says "any number that's greater than 1," and another part says "apply to any number." You should probably reconcile these two different criteria, especially since the chosen answer fulfills one of them and not the other.
– John
Aug 6 at 18:03




Part of the question says "any number that's greater than 1," and another part says "apply to any number." You should probably reconcile these two different criteria, especially since the chosen answer fulfills one of them and not the other.
– John
Aug 6 at 18:03










3 Answers
3






active

oldest

votes

















up vote
12
down vote



accepted










There are many approaches. You need an increasing function that has a horizontal asymptote. One simple one is $f(x)=frac x1+x$. When $x=0, f(x)=0$ and as $x$ gets large $f(x)$ goes to $1$.






share|cite|improve this answer




























    up vote
    4
    down vote













    What about $frac xx+1$? It's an increasing function with values in $[0,1)$.






    share|cite|improve this answer




























      up vote
      3
      down vote













      Try the following function:



      $$S(x) = frac 11+e^-x$$



      This function has the following graph:



      enter image description here



      Now, if all of your values are non-negative, you will want to use the following function:



      $$S(x) = frac 21+e^-x - 1$$






      share|cite|improve this answer





















        Your Answer




        StackExchange.ifUsing("editor", function ()
        return StackExchange.using("mathjaxEditing", function ()
        StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
        StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
        );
        );
        , "mathjax-editing");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "69"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        convertImagesToLinks: true,
        noModals: false,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        noCode: true, onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );








         

        draft saved


        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873950%2fconvert-any-positive-number-to-decimal-x-such-that-0-lt-x-lt-1%23new-answer', 'question_page');

        );

        Post as a guest






























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        12
        down vote



        accepted










        There are many approaches. You need an increasing function that has a horizontal asymptote. One simple one is $f(x)=frac x1+x$. When $x=0, f(x)=0$ and as $x$ gets large $f(x)$ goes to $1$.






        share|cite|improve this answer

























          up vote
          12
          down vote



          accepted










          There are many approaches. You need an increasing function that has a horizontal asymptote. One simple one is $f(x)=frac x1+x$. When $x=0, f(x)=0$ and as $x$ gets large $f(x)$ goes to $1$.






          share|cite|improve this answer























            up vote
            12
            down vote



            accepted







            up vote
            12
            down vote



            accepted






            There are many approaches. You need an increasing function that has a horizontal asymptote. One simple one is $f(x)=frac x1+x$. When $x=0, f(x)=0$ and as $x$ gets large $f(x)$ goes to $1$.






            share|cite|improve this answer













            There are many approaches. You need an increasing function that has a horizontal asymptote. One simple one is $f(x)=frac x1+x$. When $x=0, f(x)=0$ and as $x$ gets large $f(x)$ goes to $1$.







            share|cite|improve this answer













            share|cite|improve this answer



            share|cite|improve this answer











            answered Aug 6 at 14:58









            Ross Millikan

            276k21187352




            276k21187352




















                up vote
                4
                down vote













                What about $frac xx+1$? It's an increasing function with values in $[0,1)$.






                share|cite|improve this answer

























                  up vote
                  4
                  down vote













                  What about $frac xx+1$? It's an increasing function with values in $[0,1)$.






                  share|cite|improve this answer























                    up vote
                    4
                    down vote










                    up vote
                    4
                    down vote









                    What about $frac xx+1$? It's an increasing function with values in $[0,1)$.






                    share|cite|improve this answer













                    What about $frac xx+1$? It's an increasing function with values in $[0,1)$.







                    share|cite|improve this answer













                    share|cite|improve this answer



                    share|cite|improve this answer











                    answered Aug 6 at 14:59









                    Akababa

                    2,557922




                    2,557922




















                        up vote
                        3
                        down vote













                        Try the following function:



                        $$S(x) = frac 11+e^-x$$



                        This function has the following graph:



                        enter image description here



                        Now, if all of your values are non-negative, you will want to use the following function:



                        $$S(x) = frac 21+e^-x - 1$$






                        share|cite|improve this answer

























                          up vote
                          3
                          down vote













                          Try the following function:



                          $$S(x) = frac 11+e^-x$$



                          This function has the following graph:



                          enter image description here



                          Now, if all of your values are non-negative, you will want to use the following function:



                          $$S(x) = frac 21+e^-x - 1$$






                          share|cite|improve this answer























                            up vote
                            3
                            down vote










                            up vote
                            3
                            down vote









                            Try the following function:



                            $$S(x) = frac 11+e^-x$$



                            This function has the following graph:



                            enter image description here



                            Now, if all of your values are non-negative, you will want to use the following function:



                            $$S(x) = frac 21+e^-x - 1$$






                            share|cite|improve this answer













                            Try the following function:



                            $$S(x) = frac 11+e^-x$$



                            This function has the following graph:



                            enter image description here



                            Now, if all of your values are non-negative, you will want to use the following function:



                            $$S(x) = frac 21+e^-x - 1$$







                            share|cite|improve this answer













                            share|cite|improve this answer



                            share|cite|improve this answer











                            answered Aug 6 at 14:59









                            Rushabh Mehta

                            1,060114




                            1,060114






















                                 

                                draft saved


                                draft discarded


























                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873950%2fconvert-any-positive-number-to-decimal-x-such-that-0-lt-x-lt-1%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Comments

                                Popular posts from this blog

                                What is the equation of a 3D cone with generalised tilt?

                                Relationship between determinant of matrix and determinant of adjoint?

                                Color the edges and diagonals of a regular polygon