From d44f5032d0f53256b2d5aef505d6b593fd3cd158 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:14:18 +0800 Subject: fix yari h2m dry run errors (zh-CN) --- .../web/javascript/reference/global_objects/bigint/bigint/index.html | 4 ++-- files/zh-cn/web/javascript/reference/global_objects/bigint/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/bigint') diff --git a/files/zh-cn/web/javascript/reference/global_objects/bigint/bigint/index.html b/files/zh-cn/web/javascript/reference/global_objects/bigint/bigint/index.html index 7e7a2923f6..cec0e705b2 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/bigint/bigint/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/bigint/bigint/index.html @@ -19,8 +19,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/BigInt/BigInt
被创建的对象的数值。 可以是字符串或整数。
-
-

Note: BigInt() 不与 {{JSxRef("Operators/new", "new")}} 运算符一起使用。

+
+

备注:: BigInt() 不与 {{JSxRef("Operators/new", "new")}} 运算符一起使用。

例子

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 9e52874364..1ac067ad98 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 @@ -72,8 +72,8 @@ bigN * -1n

/ 操作符对于整数的运算也没问题。可是因为这些变量是 BigInt 而不是 BigDecimal ,该操作符结果会向零取整,也就是说不会返回小数部分。

-
-

当使用 BigInt 时,带小数的运算会被取整。

+
+

警告:当使用 BigInt 时,带小数的运算会被取整。

const expected = 4n / 2n;
-- 
cgit v1.2.3-54-g00ecf