Cell should not allow user to type more than 3 decimal values

I will need to ask that my colleague as we need to check what is in the editor itself to check if the value is too long or it has some characters but as it is a ~before event we do not get all the data.