fork download
  1. import java.lang.*;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. double bnextLon = 275914.18410;
  6. double nextLon = (double) Math.round(bnextLon * 100.0) / 100.0;
  7. System.out.println(bnextLon + " became " + nextLon);
  8. }
  9. }
Success #stdin #stdout 0.05s 215488KB
stdin
Standard input is empty
stdout
275914.1841 became 275914.18