How about ANY FINITE SEQUENCE AT ALL?

  • Arfman@aussie.zone
    link
    fedilink
    arrow-up
    3
    ·
    23 hours ago

    I’m a layman here and not a mathematician but how does it store the complete value of pi and not rounded up to a certain amount? Or do one of the libraries generate that?

    • lukewarm_ozone@lemmy.today
      link
      fedilink
      English
      arrow-up
      7
      ·
      21 hours ago

      You generate it when needed, using one of the known sequences that converges to π. As a simple example, the pi() recipe here shows how to compute π to arbitrary precision. For an application like pifs you can do even better and use the BBP formula which lets you directly calculate a specific hexadecimal digit of π.