PIM-1628: Clean code and set attribute with decimal allowed