I am using JQuery autogeocomplete and basically the lat_id and the lng_id strings are too long after the .
I need to set it so it’s no more that 6 digits after the dot.
For example:
Before:
-1.1501888001110125
After
-1.150188
Is this possible or if not, is there a way round it?
try this :
(its 7 because of “.” plus 6 characters)
Working example here
trimming an
input:Working example here