Mintoris Forum

Author Topic: Working with BigDecimals  (Read 2504 times)

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Working with BigDecimals
« on: Nov 09, 2012, 05:29 AM »
BigDecimal strings are a new and powerful tool. The new math routines in Basic 5.7 are all approximations. Sin, Cos, Tan all return the closest approximation of an irrational number, rounded by the specified maxDigits. It's very important to be aware of the rounding. For instance, if you want to get the cosine of Pi feed the cos function Pi calculated to a few extra decimal places than you require from the cos function.

Print BigCos$(BigPi$(25), 20)

Basic 5.7 will be released as soon as the documentation is complete.

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: Working with BigDecimals
« Reply #1 on: Nov 10, 2012, 04:51 AM »
We've also found that printing the results of BigDecimal calculations often takes longer than the calculations. So limit how much you print to the screen. The more text on the screen, the slower it will get. So use a CLS often.
« Last Edit: Nov 11, 2012, 06:57 AM by Chuck »