• Login
Community
  • Login

Divide numbers in quotes by two

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 432 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.
  • K
    Keith Thompson
    last edited by Sep 1, 2021, 8:40 PM

    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!

    P 1 Reply Last reply Sep 1, 2021, 8:41 PM Reply Quote 0
    • P
      PeterJones @Keith Thompson
      last edited by Sep 1, 2021, 8:41 PM

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

      K 1 Reply Last reply Sep 1, 2021, 8:41 PM Reply Quote 1
      • K
        Keith Thompson @PeterJones
        last edited by Sep 1, 2021, 8:41 PM

        @PeterJones thank you!

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