Mercurial > vim
comparison runtime/doc/eval.txt @ 16213:2c33b119ba92 v8.1.1111
patch 8.1.1111: it is not easy to check for infinity
commit https://github.com/vim/vim/commit/fda1bff39f89775b20a2d88ef3903656d52f66ad
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 4 13:44:37 2019 +0200
patch 8.1.1111: it is not easy to check for infinity
Problem: It is not easy to check for infinity.
Solution: Add isinf(). (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3787)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 04 Apr 2019 13:45:04 +0200 |
parents | a23c883685cb |
children | bd49e1656c72 |
comparison
equal
deleted
inserted
replaced
16212:862f5ea5dcb0 | 16213:2c33b119ba92 |
---|---|
2409 inputsave() Number save and clear typeahead | 2409 inputsave() Number save and clear typeahead |
2410 inputsecret({prompt} [, {text}]) String like input() but hiding the text | 2410 inputsecret({prompt} [, {text}]) String like input() but hiding the text |
2411 insert({object}, {item} [, {idx}]) List insert {item} in {object} [before {idx}] | 2411 insert({object}, {item} [, {idx}]) List insert {item} in {object} [before {idx}] |
2412 invert({expr}) Number bitwise invert | 2412 invert({expr}) Number bitwise invert |
2413 isdirectory({directory}) Number |TRUE| if {directory} is a directory | 2413 isdirectory({directory}) Number |TRUE| if {directory} is a directory |
2414 isinf({expr}) Number determine if {expr} is infinity value | |
2415 (positive or negative) | |
2414 islocked({expr}) Number |TRUE| if {expr} is locked | 2416 islocked({expr}) Number |TRUE| if {expr} is locked |
2415 isnan({expr}) Number |TRUE| if {expr} is NaN | 2417 isnan({expr}) Number |TRUE| if {expr} is NaN |
2416 items({dict}) List key-value pairs in {dict} | 2418 items({dict}) List key-value pairs in {dict} |
2417 job_getchannel({job}) Channel get the channel handle for {job} | 2419 job_getchannel({job}) Channel get the channel handle for {job} |
2418 job_info([{job}]) Dict get information about {job} | 2420 job_info([{job}]) Dict get information about {job} |
5770 The result is a Number, which is |TRUE| when a directory | 5772 The result is a Number, which is |TRUE| when a directory |
5771 with the name {directory} exists. If {directory} doesn't | 5773 with the name {directory} exists. If {directory} doesn't |
5772 exist, or isn't a directory, the result is |FALSE|. {directory} | 5774 exist, or isn't a directory, the result is |FALSE|. {directory} |
5773 is any expression, which is used as a String. | 5775 is any expression, which is used as a String. |
5774 | 5776 |
5777 isinf({expr}) *isinf()* | |
5778 Return 1 if {expr} is a positive infinity, or -1 a negative | |
5779 infinity, otherwise 0. > | |
5780 :echo isinf(1.0 / 0.0) | |
5781 < 1 > | |
5782 :echo isinf(-1.0 / 0.0) | |
5783 < -1 | |
5784 | |
5785 {only available when compiled with the |+float| feature} | |
5786 | |
5775 islocked({expr}) *islocked()* *E786* | 5787 islocked({expr}) *islocked()* *E786* |
5776 The result is a Number, which is |TRUE| when {expr} is the | 5788 The result is a Number, which is |TRUE| when {expr} is the |
5777 name of a locked variable. | 5789 name of a locked variable. |
5778 {expr} must be the name of a variable, |List| item or | 5790 {expr} must be the name of a variable, |List| item or |
5779 |Dictionary| entry, not the variable itself! Example: > | 5791 |Dictionary| entry, not the variable itself! Example: > |