Mintoris Forum

Author Topic: Simple Bigdecimal Demo - PI Calculation  (Read 2999 times)

jclemens

  • Sr. Member
  • ****
  • Posts: 146
Simple Bigdecimal Demo - PI Calculation
« on: Sep 23, 2012, 03:34 PM »
This computes PI accurately to 100 decimal places
« Last Edit: Sep 23, 2012, 11:23 PM by Chuck »

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: simple bigdecimal demo
« Reply #1 on: Sep 23, 2012, 03:57 PM »
Very cool.

harold

  • Sr. Member
  • ****
  • Posts: 807
  • My Favorite Material Posession
    • MyElectronicArt
Re: simple bigdecimal demo
« Reply #2 on: Sep 23, 2012, 04:31 PM »
Hello jclemens, I was wondering what it would take to get pi, I'll study that, Harold.

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: simple bigdecimal demo
« Reply #3 on: Sep 23, 2012, 04:54 PM »
I am hoping to add new Big Decimal commands as we go.  This algorithm would be a good candidate for a built in function that would return PI to the number of digits specified by BigFixDecimal.

jclemens

  • Sr. Member
  • ****
  • Posts: 146
Re: Simple Bigdecimal Demo - PI Calculation
« Reply #4 on: Sep 24, 2012, 05:24 AM »
Yes. The algorithm is simple to implement and each iteration doubles the number of correct digits.

ArielPalazzesi

  • Jr. Member
  • **
  • Posts: 8
Re: Simple Bigdecimal Demo - PI Calculation
« Reply #5 on: Sep 24, 2012, 05:44 PM »
¬°WOW‼

Is FAST:P:P:P‼ I like it‼ ;)

Thanks for share   ;D