diff options
author | Alain Romedenne <LibreOfficiant@gerrit.libreoffice.org> | 2022-02-04 13:13:28 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-02-12 09:57:34 +0100 |
commit | 3994c9e899323a85d4db4f9264f5dda8aae5b92b (patch) | |
tree | c6dc497271e7bb76ce29dcdc9380730bbb56ba15 /source | |
parent | fbf1f624314ee83866d10c2b53741ac4c1d0e08f (diff) |
tdf#146847 (\) Integer Division operator help page
Change-Id: I43e82fd2038a8f557c1fcefebd1beadb2bda7184
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/129432
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'source')
-rw-r--r-- | source/text/sbasic/shared/03070700.xhp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/source/text/sbasic/shared/03070700.xhp b/source/text/sbasic/shared/03070700.xhp index 6ab624eaaa..64e4ba2c12 100644 --- a/source/text/sbasic/shared/03070700.xhp +++ b/source/text/sbasic/shared/03070700.xhp @@ -7,15 +7,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . --> <meta> @@ -43,15 +34,13 @@ <embed href="text/sbasic/shared/00000003.xhp#functparameters"/> <paragraph id="par_id3154141" role="paragraph" xml-lang="en-US"> <emph>result</emph>: A numerical value that contains the result of the integer division.</paragraph> <paragraph id="par_id3150448" role="paragraph"> <emph>expression1, expression2</emph>: Dividend and diviser operands of the integer division.</paragraph> -<paragraph role="paragraph" id="par_id951642689912087">Before integer division, both operands are rounded to the nearest integer down. The fractional part of the result is dropped.</paragraph> +<paragraph role="paragraph" id="par_id951642689912087">Before division both operands are rounded to whole numbers. The fractional part of the result is dropped.</paragraph> <embed href="text/sbasic/shared/00000003.xhp#functexample"/> <bascode> <paragraph id="par_idm1341473008" role="bascode" localize="false">Sub IntegerDivision</paragraph> -<paragraph id="par_idm1341471776" role="bascode" xml-lang="en-US"> Print 15 / 4 ' prints 3.75</paragraph> -<paragraph id="par_idm1341471777" role="bascode" xml-lang="en-US"> Print -15 \ 4 ' prints -3</paragraph> -<paragraph id="par_idm1341471778" role="bascode" xml-lang="en-US"> Print 16.9 / 5.6 ' prints 3.017857114</paragraph> -<paragraph id="par_idm1341471779" role="bascode" xml-lang="en-US"> Print 16.9 \ -5.6 ' prints -3</paragraph> +<paragraph id="par_idm1341471776" role="bascode" xml-lang="en-US"> Print 5 \ 4 , 5 / 4 ' 1 , 1.25</paragraph> +<paragraph id="par_idm1341471777" role="bascode" xml-lang="en-US"> Print 7 \ 4 , 7 / 4 ' 1 , 1.75</paragraph> <paragraph id="par_idm1341470544" role="bascode" localize="false">End Sub</paragraph> </bascode> |