What is the Difference Between D and E in Scientific Notation?

Click For Summary
SUMMARY

The difference between 6.6725985D-20 and 6.6725985E-20 lies in their representation of numerical precision in programming. The 'D' notation indicates double precision storage, while 'E' denotes single precision, commonly used in languages like Fortran. In Visual Basic (VB), the editor automatically converts 'D' to 'E' based on the precision defined in the Dim statement. Understanding these distinctions is crucial for programmers working with numerical data types.

PREREQUISITES
  • Understanding of numerical data types in programming
  • Familiarity with double precision and single precision concepts
  • Basic knowledge of Fortran and Visual Basic (VB)
  • Awareness of how programming languages handle scientific notation
NEXT STEPS
  • Research the differences between single precision and double precision in programming
  • Learn about scientific notation in Fortran and its implications
  • Explore how Visual Basic handles data types and precision
  • Investigate best practices for numerical computations in programming
USEFUL FOR

Programmers, software developers, and computer science students who are working with numerical data types and scientific notation in languages like Fortran and Visual Basic.

tony873004
Science Advisor
Gold Member
Messages
1,753
Reaction score
143
What's the difference between:

6.6725985D-20

and

6.6725985E-20
 
Mathematics news on Phys.org
From a computer programming point of view the D means the number is stored as double precision where as E is stored as single precision (for exmaple this is the notiation used in the fortran programming language, but it may apply to other languages, I am not sure). If you arent doing any programming but just came across this then you shouldn't need to worry about it and yo ucan assume that the two are equivalent. If you are programming then do some googling/reading on single/double precision etc.
 
Thanks. That makes sense. I was wondering in relation to VB. I just tried it, and the VB editor automatically changes D to E, with the precision set in the Dim statement.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K