Sweeeeeeeeet!!!

I love you Rick.  After Damien's suggestion I was trying to use the 
java.lang.math, class (note the lower m), and getting no results.

I'll whip this up into a function, write the documentation & post it to cflib.



>Damien McKenna wrote:
>>>-----Original Message-----
>>>From: Billy Jamme [mailto:[EMAIL PROTECTED] 
>>>
>>>Anyone have any other suggestions?
>> 
>> 
>> Hit the Java directly?
>
>That would be my suggestion too.
>
>The following works under Bluedragon 6.2... should work under CFMX 
>too... easily converted to a UDF.
>
><cfscript>
>function atan2(firstArg, secondArg) {
>   Math = createObject("java","java.lang.Math");
>   return 
>Math.atan2(javacast("double",firstArg),javacast("double",secondArg));
>}
></cfscript>
><cfoutput>#atan2(2.5,3)#</cfoutput>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218112
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to