Initializing floating point types with explicit mantisa and exponent
    Nordlöw via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Tue Jan 17 09:56:13 PST 2017
    
    
  
On Tuesday, 17 January 2017 at 16:40:57 UTC, kinke wrote:
> If it doesn't have to be D ;), it can be as simple as 
> `core.stdc.math.ldexp(1, exponent)`. No CTFE though.
Isn't it a simple as
     2.0^^exponent
?
    
    
More information about the Digitalmars-d-learn
mailing list