Added decimal check for letter ratio