本文介绍了JSON e和JSON E的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JSON网站此处上,它解释了JSON对象"的不同可能性.但是,在数字部分中,这些出现:

On the JSON website here, it explains the different possibilities of JSON 'objects'. However, in the numbers section, these appear:

e | e+ | e- | E | E+ | E-

e | e+ | e- | E | E+ | E-

1-这些代表什么?

在寻找答案时,<E>出现很多.

In searching for an answer, <E> appears alot.

2-<E>与上述e | E s相关吗?

2 - Is <E> related to the above e|Es?

推荐答案

这是JSON(和大多数编程语言)用于科学表示法的表示法.科学计数法用于表示非常大或很小的浮点数. e(或等效地E)等效于×10 ^".例如,

It's the notation JSON (and most programming languages) use for scientific notation. Scientific notation is used to denote very large or small floating-point numbers. The e (or equivalently E) is equivalent to "×10^". For example,

3.7e-5 = 3.7E-5 = 3.7×10 = 0.000037

3.7e-5 = 3.7E-5 = 3.7×10 = 0.000037

可以使用正或负指数,对于正指数,可以省略+符号:

Positive or negative exponents may be used, and in the case of positive exponents, the + symbol may be omitted:

6.02e+23 = 6.02e23 = 6.02×10 = 602六兆

6.02e+23 = 6.02e23 = 6.02×10 = 602 sextillion

有关更多详细信息,请参见有关科学计数法的维基百科文章.

More details are available at the Wikipedia article on scientific notation.

这篇关于JSON e和JSON E的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 22:40