remove number over four un json

May 21, 2022 . 1 MIN READ

to give you more explanations

in my json i have geometry points , like this

[x.xxxxxx,yy.yyyyyy] 

before the . (point) it can be one or two x (same for y),
and these x and y can be with –
before … after the coma the number of x and y varies

i would to keep only 4 numbers after the . (point)

so

[-95.960683,35.622691]

become

[-95.9606,35.6226]

but

[9.6021,-45.6081]

stay

[9.6021,-45.6081]

if you have ideas
thanks

Reference:

https://community.notepad-plus-plus.org/topic/21389/remove-number-over-four-un-json

Leave a Reply

Your email address will not be published. Required fields are marked *