I'm trying to implement some functions over Amazon's Ion Value, while reading its document, I found an example of decimal number is 6.62607015d-34 what does d- mean here? Thanks
Asked
Active
Viewed 404 times
1
user8142520
- 113
- 3
-
I would say it's a typo and it means e as in exponent, but I'm not too sure. – KingLogic Oct 23 '20 at 19:06
1 Answers
2
Do you know the notation 1.234e-56 for $1.234\times 10^{-56}$? Obviously, 1.234d-56 means the same but creates a value of type decimal instead of float.
md2perpe
- 26,770
-
-
@KingLogic. In some languages that might be the case, but in this case the documentation certainly shows
eunder float. – md2perpe Oct 23 '20 at 19:25 -
@KingLogic e is a reference to exponent, so is used for the language's default real numbers format, which will be something binary such as float in Amazon Ion (technically a serialization format) or double in C#. – J.G. Oct 23 '20 at 19:27
