rockerest’s avatarrockerest’s Twitter Archive—№ 16,529

  1. What's the largest number a consumer financial application should support?
    1. …in reply to @rockerest
      I'm thinking 90,000,000,000,000 (90 trillion) in hundred-thousandth-fractional base units (e.g. hundred-thousandths of a cent), because it can be represented in a 64-bit signed integer and it covers the entire world's GDP (according to the World Bank).
      1. …in reply to @rockerest
        Obviously numbers that big would just be for playing around if a consumer was using it, but it feels like a good arbitrary limit since larger numbers or smaller fractional units would have to be represented with much more complex numbers. One BigInt in JavaScript could hold this.
        1. …in reply to @rockerest
          Numbers are hard. It would be thousand-base-units, not hundred-thousand-base-units. For USD, that would mean 100,000 base-units would equal $1, still being representable in a 64-bit signed int. Hundred-thousandth units would be way over. Did I mention numbers are hard?
          1. …in reply to @rockerest
            New question: What currency systems have a smallest unit that's fractionally smaller than 1 hundredth of their currency? 😬😬😬😬