Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    And perl -Mbigint -pe ... will transparently make it work for huge integers Commented Jun 18 at 7:15
  • Yes, though not for the ones that are constrained to long double by POSIX' strtold(). Commented Jun 18 at 8:21
  • Sure, but I don't see why you even added that section. "Divisible by 4096" makes no sense with floats. Commented Jun 18 at 9:07
  • 2
    @pipe, it may still make sense for 0x1p15 or 4.096e+3 which are other representations of integers that are multiple of 4096 and for which we use strtold to interpret. Commented Jun 18 at 9:43
  • @pipe, why not? 8192 is divisible by 4096, while 4000 and 0.5 aren't. 1.25 is divisible by 0.25, while 1.2 and 0.125 aren't. Commented Jun 18 at 11:21