Welcome to visit《 Journal of Air Force Engineering University 》Official website!

Consultation hotline:029-84786242 RSS EMAIL-ALERT
The Design of a C ++ Over -long Floating - point Data Type and Accurate Calculation of π
DOI:
CSTR:
Author:
Affiliation:

Clc Number:

TP301. 6

Fund Project:

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • |
  • Materials
  • |
  • Comments
    Abstract:

    An over-long floating-point data type based on the C + + Object Oriented Programming ( OOP) is designed and implemented in this paper. The data type is beyond the limitation of software data type and computer digit length and can accomplish storage and arithmetic operation and input/ output among the over -long floatinglpoint numbers given at discration. On the basis of the data type , we advance a series - based method by which we can calculate values of circurnference ratio π and the natural logarithm's fundus e up to any digit after the radix point.

    Reference
    Related
    Cited by
Get Citation
Share
Article Metrics
  • Abstract:
  • PDF:
  • HTML:
  • Cited by:
History
  • Received:
  • Revised:
  • Adopted:
  • Online: November 19,2015
  • Published:
Article QR Code