Click or drag to resize

SimplSharpDeviceHelperUshortToPercent Method

Method to convert from a Ushort to a percentage.

Namespace: Crestron.SimplSharpPro.DeviceSupport
Assembly: Crestron.SimplSharpPro.DeviceSupport (in Crestron.SimplSharpPro.DeviceSupport.dll) Version: 2.21.121
Syntax
C#
public static float UshortToPercent(
	ushort paramUshort
)

Parameters

paramUshort  UInt16
A ushort value ranging from 0 to 65535.

Return Value

Single
A float value from 0.000 to 100.000 according to the formula This follows the formula ((paramUshort / 65535.0) * 100).

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also