I want to convert milliseconds to seconds (for example 1500ms to 1.5s, or 500ms to 0.5s) with as much precision as possible.
Double.parseDouble(500 / 1000 + "." + 500 % 1000);
isn't the best way to do it: I'm looking for a way to get the remainder from a division operation so I could simply add the remainder on.