Re: Why Java's math expression (power) is so inconvenient and error prone?



Shawn wrote:


I appreciate Mark Thornton's reply:

import static java.lang.Math.*;

Then pow(2,3) or exp(1) is ready for service. Obviously, I didn't know this trick.

In comparison, a wrapper class is a waste at all.

So if there is an exp method then why were you using pow in the first place. Please read the documentation in future.
.



Relevant Pages

  • Re: Project Duration / Hours
    ... "Shawn" wrote in message ... > business days will it take to finish (No problem here, ... > use the Duration Column and the standard calendar)? ... How do I mark a task complete without it changing ...
    (microsoft.public.project)
  • Re: Case sensitive TSQL syntax
    ... Thanx Uri that did the trick. ... > You can use ALTER DATABASE ... ... When I take those same procedure to a clients machine I get ...
    (microsoft.public.sqlserver.programming)
  • Re: Counting with distinct - Optimizer Problems
    ... Nice trick, Uri. ... I'll add that Shawn isn't missing anything, ...
    (microsoft.public.sqlserver.programming)
  • Re: New Throw Invented
    ... I'm not much of a handler...but isn't the purpose of a fake to trick ... the mark into thinking you're throwing something that you're not going ...
    (rec.sport.disc)
  • Re: Center an SDI application on startup
    ... Mark F. wrote: ... How simple is it to center an SPI application when it starts up in a ... Here is another cool trick to center the mainframe at 90% of the screen ...
    (microsoft.public.vc.mfc)