< Back

ConvertTo-Metric

Mon Jan 13, 2020 7:33 pm

NAME ConvertTo-Metric



SYNOPSIS

Converts units from imperial to metric





SYNTAX

ConvertTo-Metric [-Value] <Double> [-Unit] <String> [<CommonParameters>]





DESCRIPTION

Converts a variety of units from imperial to metric





PARAMETERS

-Value <Double>

The value to convert into metric



Required? true

Position? 1

Default value 0

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Unit <String>

The unit the value is in



Required? true

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Management.Automation.PSObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>ConvertTo-Metric 1 pound















RELATED LINKS