fxDreema

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

    How to set the decimal point to only retain 2 digits after the decimal point? Please seek guidance from experts

    Questions & Answers
    2
    10
    511
    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.
    • 诸
      诸葛点金 last edited by

      Why are there so many decimal places after subtracting integers,Draw Text It can be displayed, but there are many decimal points after it,If you choose CommentBut it doesn't display, please guide me, expert2.png 1.png

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

        Add a shared link to see exactly how things are set, by the looks of it you have the result as a double, this code should correct in DoubleToString(variable,2), this will set the figure as 2 decimal places after the .

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        诸 1 Reply Last reply Reply Quote 0
        • 诸
          诸葛点金 last edited by

          https://fxdreema.com/shared/F7jzod5lc 共享链接 高手帮看看是那里的问题

          1 Reply Last reply Reply Quote 0
          • 诸
            诸葛点金 @jstap last edited by

            @jstap Can you help me see where the problem is
            https://fxdreema.com/shared/F7jzod5lc

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

              This should do it: DoubleToString(gaodin_jian2,2)

              Screenshot (2559).png

              Learn fxDreema Without the Wait!

              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

              Don’t miss out

              Click here➡️ https://mybook.to/fxDreema to get your copy today!

              Enjoy! 😊

              诸 2 Replies Last reply Reply Quote -1
              • 诸
                诸葛点金 @jstap last edited by

                @jstap said in How to set the decimal point to only retain 2 digits after the decimal point? Please seek guidance from experts:

                This should do it: DoubleToString(gaodin_jian2,2)

                Screenshot (2559).png

                Still not working, experts can modify the parameters and run it again to see if it works properly12.png

                1 Reply Last reply Reply Quote 0
                • 诸
                  诸葛点金 @jstap last edited by

                  @jstap OK 1111.png

                  jstap 1 Reply Last reply Reply Quote 0
                  • jstap
                    jstap @诸葛点金 last edited by

                    @诸葛点金 👍

                    Learn fxDreema Without the Wait!

                    My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                    The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                    Don’t miss out

                    Click here➡️ https://mybook.to/fxDreema to get your copy today!

                    Enjoy! 😊

                    诸 1 Reply Last reply Reply Quote 0
                    • 诸
                      诸葛点金 @jstap last edited by

                      @jstap thank you very much🤝

                      jstap 1 Reply Last reply Reply Quote 0
                      • jstap
                        jstap @诸葛点金 last edited by

                        @诸葛点金 No problem

                        Learn fxDreema Without the Wait!

                        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                        Don’t miss out

                        Click here➡️ https://mybook.to/fxDreema to get your copy today!

                        Enjoy! 😊

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

                        Online Users

                        A
                        A
                        E
                        B
                        M
                        J

                        17
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors