Why pow() won't go beyond 2^31?

Murilo murilomiranda92 at hotmail.com
Thu Nov 29 07:07:06 UTC 2018


I am using the function pow() from std.math but if I try pow(2, 
32) it returns 0, it doesn't compute beyond the maximum value of 
an int(2^31) and I am working with long. What should I do?


More information about the Digitalmars-d-learn mailing list