<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="urn:schemas-microsoft-com:office:smarttags">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am new to Drools. I am having a problem comparing 2 double
values. I have a Java class with a double attribute called loanToValue. The
loanToValue is been read from an XML file and the value is 92000.0. Based on
this value I do not expect this rule to be fired, but for some reason it does.
And the print statement returns 92000.0. Does anyone know what I&#8217;m doing
wrong? My rule looks as follows:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><b><font size=2 color="#960000"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#960000;font-weight:bold'>rule</span></font></b><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'> </span></font><font size=2 color=green face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:green'>&quot;G2 Equity
in Asset&quot;</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><b><font size=2
color="#960000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#960000;font-weight:bold'>ruleflow-group</span></font></b><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> </span></font><font size=2 color=green
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>&quot;goods&quot;</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><b><font size=2
color="#960000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#960000;font-weight:bold'>dialect</span></font></b><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> </span></font><font size=2 color=green
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:green'>&quot;mvel&quot;</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><b><font size=2
color="#960000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#960000;font-weight:bold'>when</span></font></b><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $d
: IndividualDecision()</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Individual(</span></font><b><font
size=2 color="#960000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#960000;font-weight:bold'>eval</span></font></b><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>($d.getLoanToValue() &lt; </span></font><font
size=2 color=green face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:green'>&quot;85&quot;</span></font><font size=2
color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>))</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><b><font size=2
color="#960000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#960000;font-weight:bold'>then</span></font></b><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(&quot;loanToValue:
&quot; + ($d.getLoanToValue()));</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></font></p>

<p class=MsoNormal><b><font size=2 color="#960000" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:
bold'>end<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=2 color="#960000" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:#960000;font-weight:
bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Ade<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><strong><b><font
size=1 color=gray face=Arial><span lang=EN-IE style='font-size:8.0pt;
font-family:Arial;color:gray'>Adeyinka Timi</span></font></b></strong><font
size=1 color=gray face=Arial><span lang=EN-IE style='font-size:8.0pt;
font-family:Arial;color:gray'>&nbsp;</span></font><font size=1 color=blue
face=Arial><span lang=EN-IE style='font-size:8.0pt;font-family:Arial;
color:blue'>|</span></font><font size=1 color="#ffaf5f" face=Arial><span
lang=EN-IE style='font-size:8.0pt;font-family:Arial;color:#FFAF5F'>&nbsp;</span></font><font
size=1 color="#999999" face=Arial><span lang=EN-IE style='font-size:8.0pt;
font-family:Arial;color:#999999'>Technical Supprt</span></font><font size=1
color=gray face=Arial><span lang=EN-IE style='font-size:8.0pt;font-family:Arial;
color:gray'>&nbsp;</span></font><font size=1 color=blue face=Arial><span
lang=EN-IE style='font-size:8.0pt;font-family:Arial;color:blue'>|</span></font><font
size=1 color=gray face=Arial><span lang=EN-IE style='font-size:8.0pt;
font-family:Arial;color:gray'> <strong><b><font face=Arial><span
style='font-family:Arial'>Nathean Technologies Ltd</span></font></b></strong></span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=1 color=gray face=Arial><span lang=EN-IE style='font-size:8.0pt;
font-family:Arial;color:gray'>Registered Office </span></font><font size=1
face=Arial><span lang=EN-IE style='font-size:8.0pt;font-family:Arial'><ns0:Street
 w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
 w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><ns0:address
  w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
  w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><st1:Street
  w:st="on"><st1:address w:st="on"><font color=gray><span style='color:gray'>3
    Lyncon Court</span></font></st1:address></st1:Street></ns0:address></ns0:Street><font
color=gray><span style='color:gray'>, </span></font><ns0:PlaceName
 w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
 w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><st1:PlaceName
 w:st="on"><font color=gray><span style='color:gray'>IDA</span></font></st1:PlaceName></ns0:PlaceName><font
color=gray><span style='color:gray'> </span></font><ns0:PlaceName
 w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
 w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><st1:PlaceName
 w:st="on"><font color=gray><span style='color:gray'>Science &amp; Technology</span></font></st1:PlaceName></ns0:PlaceName><font
color=gray><span style='color:gray'> </span></font><ns0:PlaceType
 w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
 w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><st1:PlaceType
 w:st="on"><font color=gray><span style='color:gray'>Park</span></font></st1:PlaceType></ns0:PlaceType><font
color=gray><span style='color:gray'>, </span></font><ns0:Street
 w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
 w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><ns0:address
  w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
  w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><st1:Street
  w:st="on"><st1:address w:st="on"><font color=gray><span style='color:gray'>Snugborough
    Road</span></font></st1:address></st1:Street></ns0:address></ns0:Street><font
color=gray><span style='color:gray'>, Blanchardstown, </span></font><ns0:City
 w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
 w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><st1:City
 w:st="on"><font color=gray><span style='color:gray'>Dublin</span></font></st1:City></ns0:City><font
color=gray><span style='color:gray'> 15, </span></font><ns0:country-region
 w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
 w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><ns0:place
  w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
  w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><st1:country-region
  w:st="on"><st1:place w:st="on"><font color=gray><span style='color:gray'>Ireland</span></font></st1:place></st1:country-region></ns0:place></ns0:country-region><font
color=gray><span style='color:gray'><br>
<strong><b><font face=Arial><span style='font-family:Arial'>T +353 1 685 3001</span></font></b></strong>
</span></font><font color=blue><span style='color:blue'>|</span></font><font
color="#999999"><span style='color:#999999'> VOIP 076 615 1117 </span></font><font
color=blue><span style='color:blue'>|</span></font><font color=gray><span
style='color:gray'> <strong><b><font face=Arial><span style='font-family:Arial'>E
adeyinka.timi@nathean.com</span></font></b></strong>&nbsp;</span></font><font
color=blue><span style='color:blue'>|</span></font><font color="#999999"><span
style='color:#999999'> <a href="http://www.nathean.com/"
title="blocked::http://www.nathean.com/"></a><a href="http://www.nathean.com"><span
title="blocked::http://www.nathean.com/">www.nathean.com</a></span></span></font></span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=1 color="#999999" face=Verdana><span lang=EN-IE style='font-size:6.5pt;
font-family:Verdana;color:#999999'>Incorporated in </span></font><font size=1
face=Verdana><span lang=EN-IE style='font-size:6.5pt;font-family:Verdana'><ns0:country-region
 w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
 w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><ns0:place
  w:insAuthor="Adeyinka Timi" w:insDate="2010-04-09T11:05:00Z"
  w:endInsAuthor="Adeyinka Timi" w:endInsDate="2010-04-09T11:05:00Z"><st1:country-region
  w:st="on"><st1:place w:st="on"><font color="#999999"><span style='color:#999999'>Ireland</span></font></st1:place></st1:country-region></ns0:place></ns0:country-region><font
color="#999999"><span style='color:#999999'>, No. 339972</span></font></span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=1 color="#999999" face=Verdana><span lang=EN-IE style='font-size:6.5pt;
font-family:Verdana;color:#999999'>The information appearing in this email and
any files transmitted with it is confidential and may not be reproduced,
modified, distributed, transmitted, displayed, published or broadcast without
the prior written permission of Nathean Technologies Ltd. It is intended solely
for the use of the addressee(s). Nathean Technologies Ltd, its directors,
officers and employees do not accept liability for any loss or damage of any
nature howsoever arising pertaining to the use of information appearing in this
email and/or any files transmitted with it. Whilst this email has been checked
for the presence of computer viruses, Nathean Technologies Ltd does not, except
as required by law, represent, warrant and/or guarantee that the integrity of
this communication has been maintained nor that the communication is free of
errors, viruses, interception or interference.</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>