Error in code calculation

Sergei kls at tut.by
Thu Apr 29 17:17:11 UTC 2021


When raising to a power of a fractional number, an incorrect 
subtraction occurs:

import std.stdio;

void main()
{
     float x;
         x=1/2;
     writeln (4^^x);
     writeln (4^^(1/2));
}


More information about the Digitalmars-d mailing list