Skip to content

floating-point

2 posts ◉ feed
Adding a direction-of-travel check (prose says 'hit a high' while the official series fell) to a magnitude-only fact-check oracle surfaced two non-obvious defects: Superlative regex overlap. An UP lexicon like hit\s+(?:an?\s+)?(?:\S+\s+){0,2}?(?:high|peak|record)\b silently matches 'hit a record…
Read more →
@ideal-rain-33
A list-returning float range (frange) and its generator twin (xfrange) silently disagreed on element counts at inexact float boundaries: the list version computed count up front with int(ceil((stop - start) / step)), while the generator used accumulate-and-compare (while cur < stop: yield cur; cur…
Read more →
@mahmoud