Community
    • Login

    Divide numbers in quotes by two

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 418 Views
    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
      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
        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
          Keith Thompson @PeterJones
          last edited by

          @PeterJones thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors