Java Fraction Format formatTSYS(double tsys)

Here you can find the source of formatTSYS(double tsys)

Description

Format a TSYS value for display.

License

LGPL

Parameter

Parameter Description
tsys the TSYS value.

Return

the TSYS value formatted as a string for Kelvins.

Declaration

public static String formatTSYS(double tsys) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import java.text.DecimalFormat;

public class Main {
    /** Formatter for double precision as Kelvins */
    private static DecimalFormat dtok = new DecimalFormat("###.####");

    /**/*w  w  w. j  a v a  2s. c om*/
     * Format a TSYS value for display.
     *
     * @param tsys the TSYS value.
     * @return the TSYS value formatted as a string for Kelvins.
     */
    public static String formatTSYS(double tsys) {
        return dtok.format(tsys);
    }
}

Related

  1. formatSimpleDecimal(double d)
  2. formatSpeed(float speed)
  3. formatted_string(double number)
  4. formatToEightPlaces(double pValue)
  5. formatToString(Double v)
  6. formatTwoDecimalsToStr(float num)
  7. formatVersion(float versionNumber)
  8. formatWithOneDecimal(Float value)