Skip to content

Commit 83c6e35

Browse files
committed
math.frexp and math.ldexp
1 parent d8fd92a commit 83c6e35

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

locale/en-us/meta.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,11 +508,11 @@ math.floor =
508508
math.fmod =
509509
'Returns the remainder of the division of `x` by `y` that rounds the quotient towards zero.'
510510
math.frexp =
511-
'Decompose `x` into tails and exponents. Returns `m` and `e` such that `x = m * (2 ^ e)`, `e` is an integer and the absolute value of `m` is in the range [0.5, 1) (or zero when `x` is zero).'
511+
'Returns two numbers `m` and `e` such that `x = m * (2 ^ e)`, where `e` is an integer. When `x` is zero, NaN, +inf, or -inf, `m` is equal to `x`; otherwise, the absolute value of `m` is in the range [0.5, 1).'
512512
math.huge =
513513
'A value larger than any other numeric value.'
514514
math.ldexp =
515-
'Returns `m * (2 ^ e)` .'
515+
'Returns `m * (2 ^ e)`, where `e` is an integer.'
516516
math.log['<5.1'] =
517517
'Returns the natural logarithm of `x` .'
518518
math.log['>5.2'] =

locale/zh-cn/meta.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,11 @@ math.floor =
486486
math.fmod =
487487
'返回 `x` 除以 `y`,将商向零圆整后的余数。'
488488
math.frexp =
489-
'将 `x` 分解为尾数与指数,返回值符合 `x = m * (2 ^ e)``e` 是一个整数,`m` 是 [0.5, 1) 之间的规格化小数 (`x` 为0时 `m` 为0)'
489+
'返回两个数 `m` 和 `e`,使得 `x = m * (2 ^ e)`,其中 `e` 为整数。当 `x` 为零、NaN、+inf 或 -inf 时,`m` 等于 `x`;否则 `m` 的绝对值在范围 [0.5, 1) 内'
490490
math.huge =
491491
'一个比任何数字值都大的浮点数。'
492492
math.ldexp =
493-
'返回 `m * (2 ^ e)` '
493+
'返回 `m * (2 ^ e)`,其中 `e` 为整数'
494494
math.log['<5.1'] =
495495
'返回 `x` 的自然对数。'
496496
math.log['>5.2'] =

meta/template/math.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ function math.floor(x) end
100100
---@nodiscard
101101
function math.fmod(x, y) end
102102

103-
---@version <5.2
103+
---@version <5.2, >5.5
104104
---#DES 'math.frexp'
105105
---@param x number
106106
---@return number m
107107
---@return number e
108108
---@nodiscard
109109
function math.frexp(x) end
110110

111-
---@version <5.2
111+
---@version <5.2, >5.5
112112
---#DES 'math.ldexp'
113113
---@param m number
114114
---@param e number

0 commit comments

Comments
 (0)