Thanks David.<br><br><div class="gmail_quote">On Fri, Aug 20, 2010 at 3:26 PM, David Kirkman <span dir="ltr"><<a href="mailto:dkirkman@ucsd.edu">dkirkman@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Fri, Aug 20, 2010 at 12:13 PM, David Kirkman <<a href="mailto:dkirkman@ucsd.edu">dkirkman@ucsd.edu</a>> wrote:<br>
> On Fri, Aug 20, 2010 at 11:48 AM, David Dreisigmeyer<br>
> <<a href="mailto:david.dreisigmeyer@gmail.com">david.dreisigmeyer@gmail.com</a>> wrote:<br>
>> Hi,<br>
<br>
</div>I missed the bottom of your message!<br>
<div class="im"><br>
>> Also, this works:<br>
>> CL-USER> (jcall (jmethod "java.lang.Float" "intValue") 4.0)<br>
>> 4<br>
<br>
</div>This works for you because 4.0 is the class argument to jcall, and it<br>
ends up being passed as a java.lang.Float.<br>
<br>
You'll get an error if you try it with 4.0d0, or if you have your<br>
*read-default-float-format* set to double.<br>
<div class="im"><br>
>> but when I try this:<br>
>> (jcall (jmethod "java.lang.Float" "compare") 4.0 5.0)<br>
>> I get:<br>
>> No such method: java.lang.Float.compare()<br>
<br>
</div>(jcall (jmethod "java.lang.Float" "compare" "float" "float") nil 4.0s0 5.0s0)<br>
<br>
or<br>
<br>
(jcall (jmethod "java.lang.Float" "compareTo" "java.lang.Float")<br>
4.0s0 5.0s0)<br>
</blockquote></div><br>