powershell string to decimal

Jason Steeves 121 Reputation points

I'm reading into a variable a value that is from the add/remove programs and this is a data type of String. I want to change this to a numerical value so that I can perform a Less Than comparison to determine if a piece of software needs to be installed or skipped.

How can I convert this variable from string to a numerical data string?

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,907 questions
{count} votes

0 additional answers

Sort by: Most helpful