ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to change complex 0.122345687+0.87659454j to 3 decimal places (https://www.excelbanter.com/excel-discussion-misc-queries/178666-how-change-complex-0-122345687-0-87659454j-3-decimal-places.html)

erwan

How to change complex 0.122345687+0.87659454j to 3 decimal places
 
How to change complex 0.122345687+0.87659454j to 3 decimal places

Ron Rosenfeld

How to change complex 0.122345687+0.87659454j to 3 decimal places
 
On Tue, 4 Mar 2008 05:58:00 -0800, erwan
wrote:

How to change complex 0.122345687+0.87659454j to 3 decimal places



=COMPLEX(ROUND(IMREAL(A1),3),ROUND(IMAGINARY(A1),3 ),"j")

or, if you might have either an "i" of "j" suffix:

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

--ron

erwan

How to change complex 0.122345687+0.87659454j to 3 decimal pla
 
thank you ron but still have slight problem when doing iteration.

"Ron Rosenfeld" wrote:

On Tue, 4 Mar 2008 05:58:00 -0800, erwan
wrote:

How to change complex 0.122345687+0.87659454j to 3 decimal places



=COMPLEX(ROUND(IMREAL(A1),3),ROUND(IMAGINARY(A1),3 ),"j")

or, if you might have either an "i" of "j" suffix:

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

--ron


Ron Rosenfeld

How to change complex 0.122345687+0.87659454j to 3 decimal pla
 
On Tue, 4 Mar 2008 06:31:01 -0800, erwan
wrote:

thank you ron but still have slight problem when doing iteration.


Please be more specific. I don't understand what you mean in this context.
--ron


All times are GMT +1. The time now is 06:45 PM.

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