On Wednesday, 26 June 2019 at 10:49:50 UTC, Den_d_y wrote:
On Wednesday, 26 June 2019 at 05:53:29 UTC, Den_d_y wrote:
On Tuesday, 25 June 2019 at 16:44:28 UTC, H. S. Teoh wrote:
On Tue, Jun 25, 2019 at 12:08:07PM +0000, Den_d_y via Digitalmars-d-learn wrote:
[...]
[...]

Did you try this?

        import std.conv : to;

        double d = ...;
        int i = d.to!int;


T

This does not work. The program hangs at this stage, even the code you have proposed also does not work as we would like. Maybe I'm doing something wrong?

Something is tracked:
std.conv.ConvOverflowException@C: \ D \ dmd2 \ windows \ bin \ .. \ .. \ src \ phobos \ std \ conv.d (1457): Conversion Underflow Overflow
What could it be

How stupid ... You just had to assign the value "0" to the value 0 ... The problem is solved.

Reply via email to