how do i retrieve complex numbers (a + jb) so that just a appears in one textbox and just b appears in another textbox?

Recommended Answers

All 3 Replies

Depends on how your complex number is defined.
Is it just a string or is it a struct or a class? Please tell.

Well Chargerfan, you have to more specific about your question....

Ok, my knowledge of complex numbers is scant to say the least. This to me looks like a maths question hidden inside a c# question.

To answer the c# part just assign the Text property of the edit box with the value eg.

float a = 0.23f;
textBox1.Text = a.ToString();

If you are having problems with the maths visit here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.