Math question to check if we need to put $ sign or not