Kelvin To Fahrenheit - Java java.lang

Java examples for java.lang:Math Convert

Description

Kelvin To Fahrenheit

Demo Code


//package com.java2s;

public class Main {
    public static int KelvinToFahrenheit(float kelvin) {
        return (int) Math.ceil(kelvin * (9.0f / 5.0f) - 459.67f);
    }/*from   ww  w .j a v  a  2  s .  c o m*/
}

Related Tutorials