length's type.

Gary Chike chikega at gmail.com
Wed Feb 7 20:13:40 UTC 2024


On Wednesday, 7 February 2024 at 20:08:24 UTC, Gary Chike wrote:
> On Wednesday, 7 February 2024 at 19:32:56 UTC, Gary Chike wrote:

>     double c = (double)sumArray(a, aLength) / aLength;

If I don't cast explicitly:

`double c = sumArray(a, aLength) / aLength;`

then I will get a similar result as the D code:

`Average: 9223372036854773760.00`



More information about the Digitalmars-d-learn mailing list