Not reading the manual? Same thing would happen in JSON.
Sure it's annoying but all the YAML docs I've ever read state that unquoted numbers are ints/floats.