|
![]() |
||||||||||||||
Primitive Data Types TutorialFunction powFloat function pow(x,y) computes y-th power of x, xy. It is defined for positive x and any y. Negative x is allowed only if y is a whole number. Zero x is allowed only for positive y. Source code:{# pow( 2., 3. ), pow( 2., -3. ), pow( 2.5, -3.7 ), pow( -2., 3. ), pow( 0., 3.2 ) #} Result:{# 8.000000, 0.125000, 0.033699, -8.000000, 0.000000 #}
|
|
||||||||||||||
© 2006 Saša Malkov | |||||||||||||||