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

Changeset 3493

Show
Ignore:
Timestamp:
05/09/08 14:48:36 (2 months ago)
Author:
larsivi
Message:

toReal can now convert from float to float, thanks mandel, closes #932

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/util/Convert.d

    r3145 r3493  
    848848        return (value ? 1.0 : 0.0); 
    849849 
    850     else+/ static if( isIntegerType!(S)
     850    else+/ static if( isIntegerType!(S) || isRealType!(S)
    851851        return cast(D) value; 
    852852