Ilya
12/26/2025, 4:23 PMcompareTo, no matter what I return from it, I’ll not be able to have all four of the operators return false when given a NaN argument
For the builtin types of Float and Double the compiler performs some special-casing as described here. But what can be done from the side of a language user, when having the need to implement such behavior?CLOVIS
12/26/2025, 5:30 PMCLOVIS
12/26/2025, 5:31 PMCLOVIS
12/26/2025, 5:32 PMNaN always compares as smaller than any other value.Ilya
12/26/2025, 5:53 PMMiguelDecimal128
12/31/2025, 5:17 PMMiguelDecimal128
12/31/2025, 5:21 PMLT LE EQ NE GT GE named in the spirit of FORTRANIlya
12/31/2025, 7:14 PMMiguelDecimal128
01/01/2026, 7:12 PMthat would follow my precision needs, as well as have NaN supportI am interested ... what are your need regarding precision?
Ilya
01/01/2026, 7:51 PMMiguelDecimal128
01/02/2026, 3:26 PMIlya
01/02/2026, 7:11 PMMiguelDecimal128
01/02/2026, 9:39 PMIlya
01/02/2026, 9:40 PM