fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How can I round a number?

    Questions & Answers
    6
    6
    3062
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      volkerhmb last edited by

      Hi,

      often fxDreema shows crazy numbers (double variables) like

      0.07000000000000001

      instead of just 0.07.

      How can I round or cut numbers down to exactly 2 digits?

      I tried it with *100 and put that sum into an int variable. Than /100 and back to another double variable. But it shows than again 0.07000000000000001. Is there any way to do what I want?

      Thanks for the help!

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        Here you have it:

        https://fxdreema.com/forum/topic/6236/how-to-roundup-numbers/3

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        Z 1 Reply Last reply Reply Quote 0
        • M
          miro1360 last edited by

          You can use the trick with "int" conversion, but then put the variable in the Text(code input) option.
          Text (code input) option must be selected.
          0_1574909436625_28c9524b-9a48-475c-8f68-1482363552f8-image.png

          Between trading and gambling is a very small gap, be careful.

          C 1 Reply Last reply Reply Quote 3
          • Z
            zedeai2 @l'andorrà last edited by

            @l-andorrà Hello, Thank You!

            1 Reply Last reply Reply Quote 0
            • C
              cesardefez @miro1360 last edited by

              @miro1360 Thanks a lot. I finally get it to work.
              thank you ,thank you,thank you.

              1 Reply Last reply Reply Quote 1
              • P
                PolWes last edited by

                Solution0_1613668374808_st4h.jpg

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                Online Users

                M
                T
                E
                A
                P
                V
                R
                M
                G
                H
                J

                21
                Online

                146.6k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors