maybe a floating point issue?
czylabsonasa
nobody at dev.null
Fri Sep 19 10:26:55 UTC 2025
On Friday, 19 September 2025 at 10:06:05 UTC, Denis Feklushkin
wrote:
> On Friday, 19 September 2025 at 06:23:02
>>
>> ```d
>> // Anthony_and_Cora_anthony
>>
>> import std;
>>
>> alias i32=int;
>> alias i64=long;
>> alias f64=double;
>> alias f128=real; // may be is not same as long double in C++
> ```
Denis, the kattis site probably using linux+gdc-14, and i tested
my linux+gdc-12 compiled code gives ca. 2^(-16445) for the
smallest pos. real, which shows that it is not double, at least
on my platform. But i got accepted using double with C++ and
Float64 with julia, so
the issue is hiding is somewhere else.
More information about the Digitalmars-d
mailing list