Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
added 52 characters in body
Source Link
Joey
  • 13.2k
  • 2
  • 44
  • 73

When using a number as an argument to an operator that would otherwise require a string, you can use the number directly. Compare

...-join'0'

vs.

...-join0

Works with -split as well. The argument is always converted to a string first.

When using a number as an argument to an operator that would otherwise require a string, you can use the number directly. Compare

...-join'0'

vs.

...-join0

Works with -split as well.

When using a number as an argument to an operator that would otherwise require a string, you can use the number directly. Compare

...-join'0'

vs.

...-join0

Works with -split as well. The argument is always converted to a string first.

Source Link
Joey
  • 13.2k
  • 2
  • 44
  • 73

When using a number as an argument to an operator that would otherwise require a string, you can use the number directly. Compare

...-join'0'

vs.

...-join0

Works with -split as well.