//----------------------------------------------------------------------------
        //--------------------------End of simple calculator--------------------------
        //----------------------------------------------------------------------------

        // used to calculate remainders
        private void ModuloButton_Click(object sender, EventArgs e)
        {
            functions.Mod();
            display.Text = functions.entry;
            buttonEquals.Focus();
        }