Skip to content

Commit fc57390

Browse files
authored
Merge pull request #2264 from flrgh/master
set min version for some math.* functions
2 parents 7a47ada + 3d9995f commit fc57390

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

locale/en-us/meta.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,11 +519,11 @@ math.log10 =
519519
'Returns the base-10 logarithm of x.'
520520
math.max =
521521
'Returns the argument with the maximum value, according to the Lua operator `<`.'
522-
math.maxinteger =
522+
math.maxinteger['>5.3'] =
523523
'An integer with the maximum value for an integer.'
524524
math.min =
525525
'Returns the argument with the minimum value, according to the Lua operator `<`.'
526-
math.mininteger =
526+
math.mininteger['>5.3'] =
527527
'An integer with the minimum value for an integer.'
528528
math.modf =
529529
'Returns the integral part of `x` and the fractional part of `x`.'
@@ -557,11 +557,11 @@ math.tan =
557557
'Returns the tangent of `x` (assumed to be in radians).'
558558
math.tanh =
559559
'Returns the hyperbolic tangent of `x` (assumed to be in radians).'
560-
math.tointeger =
560+
math.tointeger['>5.3'] =
561561
'If the value `x` is convertible to an integer, returns that integer.'
562-
math.type =
562+
math.type['>5.3'] =
563563
'Returns `"integer"` if `x` is an integer, `"float"` if it is a float, or `nil` if `x` is not a number.'
564-
math.ult =
564+
math.ult['>5.3'] =
565565
'Returns `true` if and only if `m` is below `n` when they are compared as unsigned integers.'
566566

567567
os =

locale/pt-br/meta.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,11 +519,11 @@ math.log10 =
519519
'Retorna o logaritmo `x` na base 10.'
520520
math.max =
521521
'Retorna o argumento com o valor máximo de acordo com o operador `<`.'
522-
math.maxinteger =
522+
math.maxinteger['>5.3'] =
523523
'Retorna o valor máximo para um inteiro.'
524524
math.min =
525525
'Retorna o argumento com o valor mínimo de acordo com o operador `<`.'
526-
math.mininteger =
526+
math.mixinteger['>5.3'] =
527527
'Retorna o valor mínimo para um inteiro.'
528528
math.modf =
529529
'Retorna a parte inteira e a parte fracionária de `x`.'
@@ -557,11 +557,11 @@ math.tan =
557557
'Retorna a tangente de `x` (requer valor em radianos).'
558558
math.tanh =
559559
'Retorna a tangente hiperbólica de `x` (requer valor em radianos).'
560-
math.tointeger =
560+
math.tointeger['>5.3'] =
561561
'Se o valor `x` pode ser convertido para um inteiro, retorna esse inteiro.'
562-
math.type =
562+
math.type['>5.3'] =
563563
'Retorna `"integer"` se `x` é um inteiro, `"float"` se for um valor real (i.e., ponto flutuante), ou `nil` se `x` não é um número.'
564-
math.ult =
564+
math.ult['>5.3'] =
565565
'Retorna `true` se e somente se `m` é menor `n` quando eles são comparados como inteiros sem sinal.'
566566

567567
os =

locale/zh-cn/meta.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,11 @@ math.log10 =
497497
'返回 `x` 的以10为底的对数。'
498498
math.max =
499499
'返回参数中最大的值, 大小由 Lua 操作 `<` 决定。'
500-
math.maxinteger =
500+
math.maxinteger['>5.3'] =
501501
'最大值的整数。'
502502
math.min =
503503
'返回参数中最小的值, 大小由 Lua 操作 `<` 决定。'
504-
math.mininteger =
504+
math.mininteger['>5.3'] =
505505
'最小值的整数。'
506506
math.modf =
507507
'返回 `x` 的整数部分和小数部分。'
@@ -535,11 +535,11 @@ math.tan =
535535
'返回 `x` 的正切值(假定参数是弧度)。'
536536
math.tanh =
537537
'返回 `x` 的双曲正切值(假定参数是弧度)。'
538-
math.tointeger =
538+
math.tointeger['>5.3'] =
539539
'如果 `x` 可以转换为一个整数, 返回该整数。'
540-
math.type =
540+
math.type['>5.3'] =
541541
'如果 `x` 是整数,返回 `"integer"`, 如果它是浮点数,返回 `"float"`, 如果 `x` 不是数字,返回 `nil`。'
542-
math.ult =
542+
math.ult['>5.3'] =
543543
'如果整数 `m` 和 `n` 以无符号整数形式比较, `m` 在 `n` 之下,返回布尔真否则返回假。'
544544

545545
os =

locale/zh-tw/meta.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,11 @@ math.log10 =
498498
'回傳 `x` 的以10為底的對數。'
499499
math.max =
500500
'回傳引數中最大的值,大小由 Lua 運算子 `<` 決定。'
501-
math.maxinteger =
501+
math.maxinteger['>5.3'] =
502502
'最大值的整數。'
503503
math.min =
504504
'回傳引數中最小的值,大小由 Lua 運算子 `<` 決定。'
505-
math.mininteger =
505+
math.mininteger['>5.3'] =
506506
'最小值的整數。'
507507
math.modf =
508508
'回傳 `x` 的整數部分和小數部分。'
@@ -536,11 +536,11 @@ math.tan =
536536
'回傳 `x` 的正切值(假定引數是弧度)。'
537537
math.tanh =
538538
'回傳 `x` 的雙曲正切值(假定引數是弧度)。'
539-
math.tointeger =
539+
math.tointeger['>5.3'] =
540540
'如果 `x` 可以轉換為一個整數,回傳該整數。'
541-
math.type =
541+
math.type['>5.3'] =
542542
'如果 `x` 是整數,回傳 `"integer"` ,如果它是浮點數,回傳 `"float"` ,如果 `x` 不是數字,回傳 `nil` 。'
543-
math.ult =
543+
math.ult['>5.3'] =
544544
'整數 `m` 和 `n` 以無符號整數形式比較,如果 `m` 在 `n` 之下則回傳布林真,否則回傳假。'
545545

546546
os =

0 commit comments

Comments
 (0)