From e983b2b1955dfcf865421251a1fad00a6ccd5196 Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:08 +0800 Subject: remove sup tag for zh-CN --- .../javascript/reference/global_objects/bigint/asintn/index.html | 4 ++-- .../javascript/reference/global_objects/bigint/asuintn/index.html | 4 ++-- .../web/javascript/reference/global_objects/bigint/index.html | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/bigint') diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint/asintn/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint/asintn/index.html index cab753a464..da27bcf501 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/bigint/asintn/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/bigint/asintn/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt/asIntN ---
{{JSRef}}
-

BigInt.asIntN 静态方法将 BigInt 值转换为一个 -2width-1 与 2width-1-1 之间的有符号整数。

+

BigInt.asIntN 静态方法将 BigInt 值转换为一个 -2^(width-1) 与 2^(width-1)-1 之间的有符号整数。

{{EmbedInteractiveExample("pages/js/bigint-asintn.html")}}
@@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt/asIntN

返回值

-

bigint 模(modulo) 2width 作为有符号整数的值。

+

bigint 模(modulo) 2^width 作为有符号整数的值。

例子

diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint/asuintn/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint/asuintn/index.html index 2c813a51ad..e313871d36 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/bigint/asuintn/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/bigint/asuintn/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt/asUintN ---
{{JSRef}}
-

BigInt.asUintN 静态方法将 BigInt 转换为一个 0 和 2width-1 之间的无符号整数。

+

BigInt.asUintN 静态方法将 BigInt 转换为一个 0 和 2^width-1 之间的无符号整数。

{{EmbedInteractiveExample("pages/js/bigint-asuintn.html")}}
@@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt/asUintN

返回值

-

bigint 模(modulo) 2width 作为无符号整数的值。

+

bigint 模(modulo) 2^width 作为无符号整数的值。

例子

diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html index 5f625f83ad..9e52874364 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/bigint/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt ---

{{JSRef}}

-

BigInt 是一种内置对象,它提供了一种方法来表示大于 253 - 1 的整数。这原本是 Javascript中可以用 {{JSxRef("Number")}} 表示的最大数字。BigInt 可以表示任意大的整数。

+

BigInt 是一种内置对象,它提供了一种方法来表示大于 2^53 - 1 的整数。这原本是 Javascript中可以用 {{JSxRef("Number")}} 表示的最大数字。BigInt 可以表示任意大的整数。

@@ -169,9 +169,9 @@ Boolean(12n)
{{JSxRef("BigInt.asIntN()")}}
-
将 BigInt 值转换为一个 -2width-1 与 2width-1-1 之间的有符号整数。
+
将 BigInt 值转换为一个 -2^(width-1) 与 2^(width-1) - 1 之间的有符号整数。
{{JSxRef("BigInt.asUintN()")}}
-
将一个 BigInt 值转换为 0 与 2width-1 之间的无符号整数。
+
将一个 BigInt 值转换为 0 与 2^(width) - 1 之间的无符号整数。

实例方法

@@ -189,7 +189,7 @@ Boolean(12n)

转化

-

由于在 {{JSxRef("Number")}} 与 BigInt 之间进行转换会损失精度,因而建议仅在值可能大于253 时使用 BigInt 类型,并且不在两种类型之间进行相互转换。

+

由于在 {{JSxRef("Number")}} 与 BigInt 之间进行转换会损失精度,因而建议仅在值可能大于2^53 时使用 BigInt 类型,并且不在两种类型之间进行相互转换。

密码学

-- cgit v1.2.3-54-g00ecf