On Monday, 22 May 2017 at 20:26:27 UTC, colin wrote:
writefln!("1024 ^^ %s = %s")(i, real(1024 ^^ i));
You convert to real AFTER doing the exponent on an integer. change `real(1024 ^^ i)` to `real(1024) ^^ i` and you should get a different result.
Adam D. Ruppe via Digitalmars-d-learn Mon, 22 May 2017 13:33:06 -0700
On Monday, 22 May 2017 at 20:26:27 UTC, colin wrote:
writefln!("1024 ^^ %s = %s")(i, real(1024 ^^ i));
You convert to real AFTER doing the exponent on an integer. change `real(1024 ^^ i)` to `real(1024) ^^ i` and you should get a different result.