# encoding: ascii
# api: powershell
# title: ConvertFrom-FahrenheitWi
# description: From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
# version: 1.8
# type: function
# author: Lee Holmes
# license: CC0
# x-poshcode-id: 2135
# x-archived: 2016-05-17T14:20:31
# x-published: 2011-09-09T21:40:00
#
#
## From Windows PowerShell Cookbook (O'Reilly)
## by Lee Holmes (http://www.leeholmes.com/guide)
param([double] $Fahrenheit)
Set-StrictMode -Version Latest
## Convert Fahrenheit to Celsius
function ConvertFahrenheitToCelsius([double] $fahrenheit)
{
$celsius = $fahrenheit - 32
$celsius = $celsius / 1.8
$celsius
}
$celsius = ConvertFahrenheitToCelsius $fahrenheit
## Output the answer
"$fahrenheit degrees Fahrenheit is $celsius degrees Celsius."