<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - The variables type Variant works by division wrong"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=124605#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - The variables type Variant works by division wrong"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=124605">bug 124605</a>
from <span class="vcard"><a class="email" href="mailto:zolika9093@gmail.com" title="Zsolt <zolika9093@gmail.com>"> <span class="fn">Zsolt</span></a>
</span></b>
<pre>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".</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>