answersLogoWhite

0

public function temperature($sMethod = 'f2c', $value = null) {

$dResult = 0;

switch($sMethod) {

case "f2c":

$dResult = (($value - 32) * 5) / 9;

break;

case "c2f":

$dResult = (($value * 9) / 5) + 32;

break;

default:

return false;

break;

}

return $dResult;

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write a shell script about a temperature convert Fahrenheit to celsium?

echo "*** Converting between the different temperature scales ***" echo "1. Convert Celsius temperature into Fahrenheit" echo "2. Convert Fahrenheit temperatures into Celsius" echo -n "Select your choice (1-2) : " read choice if [ $choice -eq 1 ] then echo -n "Enter temperature (C) : " read tc # formula Tf=(9/5)*Tc+32 tf=$(echo "scale=2;((9/5) * $tc) + 32" |bc) echo "$tc C = $tf F" elif [ $choice -eq 2 ] then echo -n "Enter temperature (F) : " read tf # formula Tc=(5/9)*(Tf-32) tc=$(echo "scale=2;(5/9)*($tf-32)"|bc) echo "$tf = $tc" else echo "Please select 1 or 2 only" exit 1 fi


How do you create a makermod script?

Hi guys, I wanted to know how to create a script makermod more sei.Alguem can not help me set up a scriptmakermod?!


What is the rhythm scene of script?

The rhythm of one's script is referred to as the pulse of the script. The rhythm provides punctuation for the sceen in order to create certain feelings or sitautions.


How do you create a PHP script?

To create a PHP script all you have to do is create a new file, then save the file as "filename.php". It must have a .php file extension.After that open the file and put in the PHP tags like shown.Then you write your PHP script within those tags and upload to your web space and check it out.


How do you create hyperlink through java script?

i m asking you


Which script is used to create the Windows PE build?

copype.cmd


How does a director create a film?

With a producer, script, actors and a good crew.


What is used to create large program on internet?

Java script


Does Karen from Outnumbered create her own script?

Yes. It is said that she did when she was younger and less able to read. Nower days she tends to stick to her script.


What measure could be used to prevent unathorized changes to a script?

Convert the script to an exe using a tool specifically for that (tool will depend on which language the script is written in) Store the tool on a server where users have only read access not write access


How do you create a web mail script using PHP?

You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.


How do you convert ico to dll files?

To convert ICO files to DLL files, you typically need to use a resource editing tool or a programming environment that supports resource compilation. First, you can create a resource script (.rc) that includes the ICO files as resources. Then, you compile this script using a resource compiler (like rc.exe from Microsoft) to generate a DLL file containing the icons. Finally, you can use the resulting DLL in your applications to access the embedded icons.