Changes between Version 1 and Version 2 of PythonChallenge0
- Timestamp:
- 08/29/06 22:17:59 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonChallenge0
v1 v2 9 9 10 10 void main () { 11 Stdout.print(cast(long)pow(2.0L, 38u));11 Stdout.print(pow(2.0L, 38u)).flush(); 12 12 } 13 13 }}} 17 17 {{{ 18 18 #!d 19 Stdout.print(cast(long)pow(2.0L, 38u));19 Stdout.print(pow(2.0L, 38u)).flush(); 20 20 }}} 21 21 22 tango.math.pow is used to raise an arbitrary floating point number to an arbitrary power. This example does 2^38^. The number is then cast to long so that it will be displayed in integer format instead of a floating point. Theresult is printed to the screen.22 tango.math.pow is used to raise an arbitrary floating point number to an arbitrary power. This example does 2^38^. The result is printed to the screen.