ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   displaying complex number in Excel (https://www.excelbanter.com/excel-discussion-misc-queries/160674-displaying-complex-number-excel.html)

YK

displaying complex number in Excel
 
When one cell contains COMPLEX(1,1), it displays "1+i" nicely.
However, when it is like COMPLEX(1/3,1), it displays "0.3333333333333333+i".
I noticed they are also flushed left, unlike normal numbers.
Is there any format to tell Excel to display complex number with limited
number of digits? Formatting the cell does not seem to do anything on
complex numbers.


Bernard Liengme

displaying complex number in Excel
 
COMPLEX displays a text value
You may want to experiment with formulas such as
=COMPLEX(ROUND(1/3,2),1)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"YK" wrote in message
...
When one cell contains COMPLEX(1,1), it displays "1+i" nicely.
However, when it is like COMPLEX(1/3,1), it displays
"0.3333333333333333+i".
I noticed they are also flushed left, unlike normal numbers.
Is there any format to tell Excel to display complex number with limited
number of digits? Formatting the cell does not seem to do anything on
complex numbers.




YK

displaying complex number in Excel
 
Thanks,

However rounding inside "COMPLEX" would not maintain the intended value.
I guess we just have to live with it....

It would have been nice if the number formatting could be applied to complex
numbers.

Thanks again.

YK

"Bernard Liengme" wrote:

COMPLEX displays a text value
You may want to experiment with formulas such as
=COMPLEX(ROUND(1/3,2),1)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"YK" wrote in message
...
When one cell contains COMPLEX(1,1), it displays "1+i" nicely.
However, when it is like COMPLEX(1/3,1), it displays
"0.3333333333333333+i".
I noticed they are also flushed left, unlike normal numbers.
Is there any format to tell Excel to display complex number with limited
number of digits? Formatting the cell does not seem to do anything on
complex numbers.






All times are GMT +1. The time now is 02:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com