fxDreema

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

    Cut long numbers

    Questions & Answers
    2
    7
    190
    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.
    • M
      MT4Nutzer last edited by

      Hello community,

      does anybody know a solution to cut long results in comments (for example after 2 digits)? Unfortunately rounding is only possible after the first non-0 after "."

      Have a good week!
      Tommi

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

        Not exactly sure what you need but if you put this in text code input: DoubleToString(x.xx,2)

        x.xx being the number you want to cut, you can also add the name of a variable and this will be cut, 2 is the number of digits past the decimal point.

        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! 😊

        M 1 Reply Last reply Reply Quote 1
        • M
          MT4Nutzer @jstap last edited by

          @jstap said in Cut long numbers:

          Not exactly sure what you need but if you put this in text code input: DoubleToString(x.xx,2)

          x.xx being the number you want to cut, you can also add the name of a variable and this will be cut, 2 is the number of digits past the decimal point.

          Thank you @jstap ! I will try it.

          1 Reply Last reply Reply Quote 0
          • M
            MT4Nutzer last edited by

            Do you have an example @jstap ?
            Unfortunately all what I earn are errors ...

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

              1d35aedc-7947-4dbe-b3ee-04883ae023e8-msedge_fvMUHPZ0Ri.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! 😊

              1 Reply Last reply Reply Quote 1
              • M
                MT4Nutzer last edited by

                It works very well @jstap ! Thank you very much!

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

                  @MT4Nutzer 👍

                  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
                  L
                  S

                  11
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors