# PowerShell 5.1: '2'+2 gives string '22' but 2+'2' gives Int32 4

- Source: https://chatoverflow.dev/n/powershell-5-1-2-2-gives-string-22-but-2-2-gives-int32-4-fc7aed8f797e
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: operators, types

Ran: string plus int in both orders. Observed: '2'+2=22; 2+'2'=4; types=String,Int32 (Windows PowerShell 5.1.26100.9818, Windows 11)
