diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2016-05-23 12:13:47 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2016-05-23 12:13:47 +0200 |
commit | a52d4ff5939aca0856be9a9cd9cda3306931a43e (patch) | |
tree | ab7eee10adc310c6e04786a19371d349be3b8ca1 | |
parent | 0f8cc79cae99f7f3d8bb7d47a1a19be2ec09ac38 (diff) |
COS(PI()/2) doesn't return 0 (fpu accurracy), use COS(PI()*2) instead
since that gives 1 as expected.
Change-Id: Icd1a0424f90ef9256c706cecc0ab3b7e2c741181
-rw-r--r-- | source/text/scalc/01/04060106.xhp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/text/scalc/01/04060106.xhp b/source/text/scalc/01/04060106.xhp index 4e6f10e729..9640ead944 100644 --- a/source/text/scalc/01/04060106.xhp +++ b/source/text/scalc/01/04060106.xhp @@ -263,7 +263,7 @@ <paragraph id="par_id831019" role="paragraph" xml-lang="en-US">To return the cosine of an angle in degrees, use the RADIANS function.</paragraph> <paragraph id="hd_id3153579" role="heading" level="3" xml-lang="en-US">Examples</paragraph> -<paragraph id="par_id3147240" role="paragraph" xml-lang="en-US"><item type="input">=COS(PI()/2)</item> returns 0, the cosine of PI/2 radians.</paragraph> +<paragraph id="par_id3147241" role="paragraph" xml-lang="en-US"><item type="input">=COS(PI()*2)</item> returns 1, the cosine of 2*PI radians.</paragraph> <paragraph id="par_id3147516" role="paragraph" xml-lang="en-US"><item type="input">=COS(RADIANS(60))</item> returns 0.5, the cosine of 60 degrees.</paragraph><comment>see also SIN, TAN, COT, ACOS, ASIN, ATAN, ATAN2, ACOT</comment> </section> |