Here you can find the source of formatTimeStep(Integer numberOfTimestepsPerYear, int stepNumber)
private static String formatTimeStep(Integer numberOfTimestepsPerYear, int stepNumber)
//package com.java2s; //License from project: Open Source License public class Main { private static String formatTimeStep(Integer numberOfTimestepsPerYear, int stepNumber) { return String.format("%.3f", (double) stepNumber / numberOfTimestepsPerYear); }/*from w w w.java 2 s. co m*/ }