Summary: Use Windows PowerShell to easily get the length of a number.
I want to know the length of a number, but when I use the Length property, it comes back as 1.
How can I get the actual length?
First convert the number to a string, and then get the length of the string:
(12345).tostring().length
0 comments