fxDreema

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

    Bug with DoubleToString

    Bug Reports
    3
    9
    1757
    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.
    • G
      GSMtricks last edited by

      Hi, I used DoubleToString(trading_amount_initial,2) for making numbers like 12.11 (for example)
      The problem is that numbers still in format 12.11111111111111
      Sometimes they are ok, but sometimes like i wrote above.

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

        Does it happen in mq5?

        (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.

        1 Reply Last reply Reply Quote 0
        • G
          GSMtricks last edited by

          Yes, I don't know why this happens. Check all, but still sometimes after compiling it works as needed, and most times - as described above.

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

            I know mq5 for fxDreema is not as efficiently implementes as for mq4. Maybe it's a bug. Unfortunately I'm not a programmer so I cannot give you an answer. 😞

            (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.

            1 Reply Last reply Reply Quote 0
            • roar
              roar last edited by

              Maybe it helps to use MathFloor in combination with the DoubleToString?

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              G 1 Reply Last reply Reply Quote 0
              • G
                GSMtricks @roar last edited by

                @roar Don't understand what do you mean ;(
                All that do I need to have just 2 digits after the DOT. No like 12.19999999999 - need just 12.19 that all.

                roar 1 Reply Last reply Reply Quote 0
                • roar
                  roar @GSMtricks last edited by roar

                  @gsmtricks
                  MathFloor(12.19999999999 * 100) / 100
                  ^^ This should return 12.19

                  Need small help? Tag me in your post
                  Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    GSMtricks @roar last edited by

                    @roar Cool.
                    Could you give me an example if 12.19999999999 have in variable named for example: Rate

                    Thank you.

                    roar 1 Reply Last reply Reply Quote 0
                    • roar
                      roar @GSMtricks last edited by

                      @gsmtricks Just replace it to the function:
                      MathFloor(Rate * 100) / 100

                      Hope it works!

                      Need small help? Tag me in your post
                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                      Online Users

                      N

                      8
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors