I'm using an exif reader to extract geo data from a photograph:data.latitude = Number(exif.getTagDescription('GPSLatitude'));
I would like the answer to 6 decimal places, so that the output in the console reads 52.629147 instead of 52.62914722222222. Please tell me how to do this?
My question is different to Round to at most 2 decimal places in JavaScript because as a newby this question is not in the context of extracting integers - represented as values - from external media; rather it is just simple numbers.