[Libreoffice-bugs] [Bug 124605] The variables type Variant works by division wrong

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 9 07:22:03 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=124605

--- Comment #6 from Zsolt <zolika9093 at gmail.com> ---
MS Excell 2010 on Win 7 Prof makes an implizit type conversion.
I tried it, X / 100 give 0 back also, if the X is empty.

The LO does not work consequent now.

It is OK that X is a Variant, and X is "Empty" and not 0.0
It is also OK that 0.0 != Empty.

But if int("Empty") makes 0, or after
double y = Empty
is y = 0.0
then
X / 100 should make an implicit type conversion.

It should be also logical and OK, 
0.0 != Empty
X / 100 raise an IllegalArgumentException
int(X) should raise also an IllegalArgumentException
This is a little bit stupid logic, but consequent.

But the LO ignores the Empty Variant *and* the following operator, as you
wrote.
It is an Error. The Emty should be Emty and not a command: "kill the next
operator".

-- 
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/20190409/ebbee08c/attachment-0001.html>


More information about the Libreoffice-bugs mailing list