1

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

user8142520
  • 113
  • 3

1 Answers1

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.

enter image description here

md2perpe
  • 26,770
  • Shouldn't float use f instead? – KingLogic Oct 23 '20 at 19:07
  • @KingLogic. In some languages that might be the case, but in this case the documentation certainly shows e under 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