Discussion Overview
The discussion revolves around the challenges of declaring extremely large integers in Fortran 90, particularly in relation to representing values like Avogadro's number (6.022 x 1023). Participants explore various approaches and considerations regarding the limitations of integer types in programming languages.
Discussion Character
- Technical explanation
- Debate/contested
Main Points Raised
- One participant expresses the need to declare an integer in Fortran 90 that can support very large numbers, specifically Avogadro's number.
- Another participant suggests that no programming language typically supports integer variables of that magnitude and proposes using separate long-integer variable types to store digits.
- A different viewpoint questions the necessity of storing Avogadro's number as an integer, noting that only a limited number of digits are known accurately.
- Some participants mention that other languages, such as Java, PHP, and C#, have built-in support for large integers through classes like BigInteger, while expressing uncertainty about Fortran's capabilities.
- One participant suggests that working in terms of moles could eliminate the need for such large integers.
- Another participant mentions IBM's PL/I as a language that can handle integers less than 1032.
Areas of Agreement / Disagreement
Participants generally agree that standard integer types in programming languages do not support extremely large values, but there is no consensus on the best approach to handle such large numbers in Fortran 90. Multiple competing views regarding the necessity and methods of representing large integers remain unresolved.
Contextual Notes
Participants highlight limitations in the accuracy of known digits for Avogadro's number and the potential need for custom implementations to handle large integers in Fortran.