Re: Why Java's math expression (power) is so inconvenient and error prone?
- From: Lionel <lionelv_@xxxxxxxxx>
- Date: Tue, 31 Oct 2006 07:53:24 +1000
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.
.
- References:
- Prev by Date: Re: Why Java's math expression (power) is so inconvenient and error prone?
- Next by Date: Rationale behind constructor call chain... ( and comparison with C++)
- Previous by thread: Re: Why Java's math expression (power) is so inconvenient and error prone?
- Next by thread: Java usercontrol?
- Index(es):
Relevant Pages
|