I have a program that takes in 2 build numbers and compares them and then if one is greater than the other it will update some soft ware. Problem is this:
PS> $test = '8.0.9.0' -gt '8.0.13.0'
PS> $test
True
I don't understand how exactly this is returning true regardless how I look at it. I know a simple solution would just be to remove the .'s and compare it that way, but I would like to know why this happens.