vim-patch:8.2.2388: no easy way to get the maximum or mininum number value

Problem:    No easy way to get the maximum or mininum number value.
Solution:   Add v:numbermax and v:numbermin.
57d5a01cb4
This commit is contained in:
Jan Edmund Lazo
2021-04-26 23:58:02 -04:00
parent 25c0675fe3
commit 95f02cb587
4 changed files with 18 additions and 3 deletions

View File

@@ -1794,6 +1794,12 @@ v:null Special value used to put "null" in JSON and NIL in msgpack.
operator) and to zero when used as a Number (e.g. in |expr5|
or |expr7| when used with numeric operators). Read-only.
*v:numbermax* *numbermax-variable*
v:numbermax Maximum value of a number.
*v:numbermix* *numbermix-variable*
v:numbermin Minimum value of a number (negative)
*v:numbersize* *numbersize-variable*
v:numbersize Number of bits in a Number. This is normally 64, but on some
systems it may be 32.