The requirements specify that it only takes in one optional plus or minus sign:

“Then, starting from this character, takes an optional initial plus or minus sign followed by as many numerical digits as possible, and interprets them as a numerical value.”