0

I have a spreadsheet containing both real and complex numbers. Some of them are like

0.48686

while others are like

4.85609+j3.24184

I am trying to round them, in order to have only two decimal places.

While Format > Cells works on the real numbers, it doesn't on the complex ones, because LibreOffice interprets them as a string.

I have looked up in google, but couldn't find anyone with the same problem.

I wanted to know if there was anyone who had already developed a macro for that, before trying to do it myself.

4

1 回答 1

1

ROUND()您可以通过组合和COMPLEX()函数来舍入复数:

在此处输入图像描述

A3有公式

=COMPLEX(A1;A2)

虽然A4

=COMPLEX( ROUND(A1;2) ; ROUND(A2;2) )

(将德国 ms office 论坛的解决方案改编为 OOo.Calc / LO Calc)

于 2014-06-05T18:46:30.203 回答