Community
    • Login

    How to multiply the numbers after a certain word?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.7k 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.
    • Viktoria AndreevaV
      Viktoria Andreeva
      last edited by

      Hi!
      How to multiply the numbers by 0.94, after the word “price_buyin”?

      Here`s example
      [{“id”:1509,“name”:“Lioele Moist Gel Spray Cream”,“short_text”:“Гель-крем увлажняющий”,“barcode”:8809247952675,“price”:829,“price_old”:null,“quantity”:1,“manufacturer”:“Lioele”,“url_name”:“gelkrem-uvlazhnyayuschiy-lioele-moist-gel-spray-cream”,“weight”:null,“volume”:100,“option_name”:null,“option_id”:null,“stock”:4,“price_buyin”:419},{“id”:2257,“name”:“Missha Glam Silky Body Balm”,“short_text”:“Шелковая крем-пудра для тела”,“barcode”:8888000000209,“price”:1290,“price_old”:null,“quantity”:1,“manufacturer”:“Missha”,“url_name”:“shelkovaya-krempudra-dlya-tela-missha-glam-silky-body-balm”,“weight”:25,“volume”:null,“option_name”:“Let’s Get Glam!”,“option_id”:3274,“stock”:5,“price_buyin”:800},{“id”:2783,“name”:“Shara Shara Aurora Liquid Highlighter”,“short_text”:“Жидкий хайлайтер”,“barcode”:8809091744822,“price”:759,“price_old”:null,“quantity”:1,“manufacturer”:“Shara Shara”,“url_name”:“zhidkiy-haylayter-shara-shara-aurora-liquid-highlighter”,“weight”:null,“volume”:9,“option_name”:“01 Pink”,“option_id”:3290,“stock”:6,“price_buyin”:425},{“id”:2783,“name”:“Shara Shara Aurora Liquid Highlighter”,“short_text”:“Жидкий хайлайтер”,“barcode”:8809091744839,“price”:759,“price_old”:null,“quantity”:1,“manufacturer”:“Shara Shara”,“url_name”:“zhidkiy-haylayter-shara-shara-aurora-liquid-highlighter”,“weight”:null,“volume”:9,“option_name”:“02 Gold”,“option_id”:3291,“stock”:6,“price_buyin”:425}]

      Thank you

      1 Reply Last reply Reply Quote 0
      • cmeriauxC
        cmeriaux
        last edited by

        use python to do that. Your data looks like python data structure ( array of dictionary )
        http://npppythonscript.sourceforge.net/

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