SimplSharpDeviceHelperUshortToPercent Method |
Method to convert from a Ushort to a percentage.
Namespace: Crestron.SimplSharpPro.DeviceSupportAssembly: Crestron.SimplSharpPro.DeviceSupport (in Crestron.SimplSharpPro.DeviceSupport.dll) Version: 2.21.121
Syntaxpublic static float UshortToPercent(
ushort paramUshort
)
Parameters
- paramUshort UInt16
- A ushort value ranging from 0 to 65535.
Return Value
SingleA 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