1
Answer

exponential to non-exponential value

venus

venus

12y
1.4k
1
private void decrypt_Click(object sender, EventArgs e)  
      {           
           v = Convert.ToDouble (txtencrypt.Text);          
           t= Math.Pow(v, d);         
           MessageBox.Show(Convert.ToString(t));         
           MessageBox.Show(""+t.ToString());          
           MessageBox.Show("" + Convert.ToDecimal(n));      
           msg = Convert.ToInt16(Math.Pow(v,d) % Convert.ToDouble(n));       
           txtdecrypt.Text = Convert.ToString(msg);  
      }


/*
this is the code im working now for rsa decryption. the problem im getting is the pow function
return in exponential format, but i need the non exponential format of output.
can any one please help me to find out solution? */
Answers (1)
0
Osman Esen
NA 10 2.6k 12y
My PC har to communicate with a kit. For instance, i have to write a random value of power consumption in the textbox, and send that value to the kit.

It is important for the kit to receive the values as a number, because the kit controls a "plastic made" flower, which will react dependent on the power value. So the only job i will do with C#, is to write the values in the textbox and send those values with pressing "send" button.


0
Satyapriya Nayak
NA 53k 8m 12y
Please elaborate it more