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





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.
.



Relevant Pages

  • 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: 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)
  • Re: Play All Videos In Folder
    ... then add the closing Quotation ... mark. ... That "trick" to paste a path does not work for me on Win2k ...
    (rec.video.desktop)
  • NASCAR-CUP: Talladega II: Ford - Ricky Rudd interview
    ... RICKY RUDD ON RACING AT TALLADEGA: "...the trick to the whole thing is to ... make sure that you have track position at the three-quarters mark, ... closer to the end." ...
    (rec.autos.sport.info)