Counting from 0 to 4000, this list converts kilometres to nautical miles displaying 8 decimal places for nautical miles.
The modern definition of the nautical miles is exactly 1852 metres.
1 nautical mile = 1.852 kilometres
1 kilometre = 1 ÷ 1.852 nautical miles
The arithmetic calculation to convert from kilometres to nautical miles can produce answers with a long list of decimal places. I have arbitrarily limited the number of decimal places displayed to 8.