Hi :)
There are other options such as Roundup. If you want to get the nearest whole number so that .5 or
over gets rounded up and less than .5 gets rounded down then one way might be something like
E1: =INT(A1+0.5) → 1
Hmm, there has got to be a specific function that does rounding correctly.
Regards from
Tom :)
--- On Sun, 14/10/12, Rolf Lochbühler <rolf.lochbuehler@yahoo.de> wrote:
From: Rolf Lochbühler <rolf.lochbuehler@yahoo.de>
Subject: Re: [libreoffice-users] Integer part of a number
To: users@global.libreoffice.org
Date: Sunday, 14 October, 2012, 11:48
could anyone tell me which formula I should use for the integer part of a
cell to be shown in another cell,
The function you're probably looking for is INT().
Example:
A1: 0.77
B1: =INT(A1) → 0
C1: =A1*2 → 1.54
D1: =B1*2 → 0
and for the value of this cell to be
changed, since, for example, 5,77 would become equal to 5?
I guess I don't understand the restrictions in your spreadsheet. Without knowing any further
details of your application, I'd say, why not use the value calculated by INT() instead of the
original value in any subsequent operations?
-rl
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.