Community
    • Login

    Divide numbers in quotes by two

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 730 Views 2 Watching
    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.
    • Keith ThompsonK Offline
      Keith Thompson
      last edited by

      Hey everyone,

      I have a multiple config files and would like to divide all numbers in quotes by two (rounded up).

      I’m hoping there is a way to only effect the numbers that have the custom_viewport string.

      Here is the example file:

      aspect_ratio_index = “23”
      custom_viewport_height = “1135”
      custom_viewport_width = “1516”
      custom_viewport_x = “327”
      custom_viewport_y = “1093”
      input_overlay = ":\overlays\vertical-arcade\arcade\game2\game2.cfg

      I appreciate any and all help. Thank you so much!

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Keith Thompson
        last edited by

        @Keith-Thompson

        Search the forum for add_1. Use the same technique shown there, except your math will be to divide the matching number by 2.

        Keith ThompsonK 1 Reply Last reply Reply Quote 1
        • Keith ThompsonK Offline
          Keith Thompson @PeterJones
          last edited by

          @PeterJones thank you!

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors