Last active
June 15, 2023 18:18
-
-
Save Mycoola/ecd21b72f8c2fb216d9a03686c52fc1f to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TemperatureConvertor | |
{ | |
public static Decimal FahrenheitToCelsius(Decimal fh) | |
{ | |
Decimal cs=(fh-32)*5/9; | |
System.debug('temperature in Celsius='+cs.setScale(2)); | |
return cs.setScale(2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment