Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default How do I format complex numbers ?

When I do math operations with complex numbers, the results are shown in long
formats with many digits after the decimal point. Something like :

0.0358698745876568+0.099839597397397i

How can I change it to fewer digits? Please help!

ks

  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: How do I format complex numbers ?

Hi ks,

Formatting complex numbers in Excel is pretty easy. You can use the "Number Format" feature to change the number of digits displayed after the decimal point.

Here are the steps to format complex numbers in Excel:
  1. Select the cell(s) containing the complex number(s) you want to format.
  2. Right-click on the selected cell(s) and choose "Format Cells" from the context menu.
  3. In the "Format Cells" dialog box, select the "Number" tab.
  4. In the "Category" list, select "Number".
  5. In the "Decimal Places" field, enter the number of digits you want to display after the decimal point.
  6. Click "OK" to apply the formatting.

Once you have done this, the complex numbers will be displayed with the specified number of digits after the decimal point.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How do I format complex numbers ?

hi
can you format it with fewer decimal places ie
on the menu bar...
formatcellsnumber tabcatagory = number...then set the decimal places

regards
FSt1

"ks" wrote:

When I do math operations with complex numbers, the results are shown in long
formats with many digits after the decimal point. Something like :

0.0358698745876568+0.099839597397397i

How can I change it to fewer digits? Please help!

ks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default How do I format complex numbers ?

On Tue, 4 Mar 2008 12:08:04 -0800, ks wrote:

When I do math operations with complex numbers, the results are shown in long
formats with many digits after the decimal point. Something like :

0.0358698745876568+0.099839597397397i

How can I change it to fewer digits? Please help!

ks


Complex numbers, in Excel, are entered as strings.

You have to round the real and imaginary parts separately, and then recombine
them.

e.g.

=COMPLEX(ROUND(IMREAL(A1),3),ROUND(IMAGINARY(A1),3 ),RIGHT(A1,1))

(although if your suffix is always an "i" or a "j", you can change the
RIGHT(A1,1) to "i" or "j").
--ron
  #5   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default How do I format complex numbers ?

Ron,

Thank you very much. It worked!

Regards,
ks


"Ron Rosenfeld" wrote:

On Tue, 4 Mar 2008 12:08:04 -0800, ks wrote:

When I do math operations with complex numbers, the results are shown in long
formats with many digits after the decimal point. Something like :

0.0358698745876568+0.099839597397397i

How can I change it to fewer digits? Please help!

ks


Complex numbers, in Excel, are entered as strings.

You have to round the real and imaginary parts separately, and then recombine
them.

e.g.

=COMPLEX(ROUND(IMREAL(A1),3),ROUND(IMAGINARY(A1),3 ),RIGHT(A1,1))

(although if your suffix is always an "i" or a "j", you can change the
RIGHT(A1,1) to "i" or "j").
--ron



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default How do I format complex numbers ?

On Wed, 5 Mar 2008 07:37:04 -0800, ks wrote:

Ron,

Thank you very much. It worked!

Regards,
ks


You're welcome. Glad to help. Thanks for the feedback.
--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA: Calculating Complex Numbers LenS Excel Discussion (Misc queries) 0 January 8th 07 06:24 PM
import complex numbers to excel wabodie Excel Worksheet Functions 0 September 9th 06 07:31 PM
Round-down complex numbers nsv Excel Discussion (Misc queries) 7 February 2nd 06 04:37 PM
Matrix operations with complex numbers Veritas Excel Discussion (Misc queries) 1 July 22nd 05 06:30 PM
complex validation for lottery numbers [email protected] Excel Discussion (Misc queries) 2 February 9th 05 04:15 PM


All times are GMT +1. The time now is 09:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"