[Libreoffice-bugs] [Bug 141078] New: INT fonction seems wrong in some cases
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 17 12:29:25 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=141078
Bug ID: 141078
Summary: INT fonction seems wrong in some cases
Product: LibreOffice
Version: 6.4.7.2 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: sebastien.cogez at ac-montpellier.fr
Description:
I try to generate random numbers and I need to evaluate a small decimal part of
my numbers.
I do a int((A1-int(A1))*60) on random numbers with one digit
But in some cases, when my number's decimal part seems to be 1, I've got an
unespected result
Steps to Reproduce:
1. in A1 =(RANDBETWEEN(1;9)*10+1)/10
2. in B1 =INT((A1-INT(A1))*60)
Actual Results:
the result in B1 should be 6, but in some cases is 5
Type F9 to change the values.
Expected Results:
always 6
Reproducible: Sometimes
User Profile Reset: No
Additional Info:
With other decimal numbers than 1, there's no problem
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210317/5c203260/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list