www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How to make a call to pow(real, uint) ?

reply LXH <LXH_member pathlink.com> writes:
It seems that you can't make a call to pow(real, uint). It gave me error message
even if using explicitly cast. pow(2.0, cast(uint)3).
Jan 17 2005
next sibling parent "Huang Yicheng" <zergbird msn.com> writes:
I have the same question-:)
"LXH" <LXH_member pathlink.com> wrote in message 
news:csifii$j2f$1 digitaldaemon.com...
 It seems that you can't make a call to pow(real, uint). It gave me error 
 message
 even if using explicitly cast. pow(2.0, cast(uint)3).

 
Jan 18 2005
prev sibling parent "Manfred Nowak" <svv1999 hotmail.com> writes:
LXH wrote:
[...]
 even if using explicitly cast. pow(2.0, cast(uint)3).
Seems you want to use "pow(2.0L, cast(uint)3)". Please refer to the "lexical" section of the manual. -manfred
Jan 18 2005