I am trying to limit the user input a number within 5 decimal points(e.g. 0.00007, 1.23456), if user input more than 5 decimal points, it will show a error message. How can I check it that is it longer than 5 dc? Thanks
public boolean isDc(float userInput)
{
if(/** if userinput is within 5 dc**/)
return true;
else
MessageBox.show("You should input within 5dc(E.g. 0.00001, 1.12345)");
return false;
}