From Microsoft's docs:
If no prefix of numString can be successfully parsed into an integer, NaN(not a number) is returned.
So yes, only parsable prefixes are returned.