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: [email protected]
Reporter: [email protected]
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._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs