Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 1 and Version 2 of PythonChallenge0Alt

Show
Ignore:
Author:
jpelcis (IP: 68.112.60.116)
Timestamp:
08/29/06 22:18:44 (8 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonChallenge0Alt

    v1 v2  
    99 
    1010void main () { 
    11         Stdout.print(cast(long)exp2(38)); 
     11        Stdout.print(exp2(38)).flush(); 
    1212} 
    1313}}} 
    1717{{{ 
    1818#!d 
    19         Stdout.print(cast(long)exp2(38)); 
     19        Stdout.print(exp2(38)).flush(); 
    2020}}} 
    2121 
    22 tango.math.exp2 is used to raise 2 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 as a floating point.  The result is printed to the screen. 
     22tango.math.exp2 is used to raise 2 to an arbitrary power.  This example does 2^38^.  The result is printed to the screen.