mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
Remove '+float' references
The corresponding code was already removed in
b4ca3abc9f
This commit is contained in:
@@ -43,7 +43,6 @@ Number A 32 or 64 bit signed number. |expr-number| *Number*
|
|||||||
Examples: -123 0x10 0177
|
Examples: -123 0x10 0177
|
||||||
|
|
||||||
Float A floating point number. |floating-point-format| *Float*
|
Float A floating point number. |floating-point-format| *Float*
|
||||||
{only when compiled with the |+float| feature}
|
|
||||||
Examples: 123.456 1.15e-6 -1.1e3
|
Examples: 123.456 1.15e-6 -1.1e3
|
||||||
|
|
||||||
String A NUL terminated string of 8-bit unsigned characters (bytes).
|
String A NUL terminated string of 8-bit unsigned characters (bytes).
|
||||||
@@ -964,7 +963,6 @@ contain digits.
|
|||||||
{exp} is the exponent, power of 10.
|
{exp} is the exponent, power of 10.
|
||||||
Only a decimal point is accepted, not a comma. No matter what the current
|
Only a decimal point is accepted, not a comma. No matter what the current
|
||||||
locale is.
|
locale is.
|
||||||
{only when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
123.456
|
123.456
|
||||||
@@ -2067,7 +2065,6 @@ abs({expr}) *abs()*
|
|||||||
< 5.456 >
|
< 5.456 >
|
||||||
echo abs(-4)
|
echo abs(-4)
|
||||||
< 4
|
< 4
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
acos({expr}) *acos()*
|
acos({expr}) *acos()*
|
||||||
@@ -2080,7 +2077,6 @@ acos({expr}) *acos()*
|
|||||||
< 1.570796 >
|
< 1.570796 >
|
||||||
:echo acos(-0.5)
|
:echo acos(-0.5)
|
||||||
< 2.094395
|
< 2.094395
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
add({list}, {expr}) *add()*
|
add({list}, {expr}) *add()*
|
||||||
@@ -2154,7 +2150,6 @@ asin({expr}) *asin()*
|
|||||||
< 0.927295 >
|
< 0.927295 >
|
||||||
:echo asin(-0.5)
|
:echo asin(-0.5)
|
||||||
< -0.523599
|
< -0.523599
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
atan({expr}) *atan()*
|
atan({expr}) *atan()*
|
||||||
@@ -2166,7 +2161,6 @@ atan({expr}) *atan()*
|
|||||||
< 1.560797 >
|
< 1.560797 >
|
||||||
:echo atan(-4.01)
|
:echo atan(-4.01)
|
||||||
< -1.326405
|
< -1.326405
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
atan2({expr1}, {expr2}) *atan2()*
|
atan2({expr1}, {expr2}) *atan2()*
|
||||||
@@ -2178,7 +2172,6 @@ atan2({expr1}, {expr2}) *atan2()*
|
|||||||
< -0.785398 >
|
< -0.785398 >
|
||||||
:echo atan2(1, -1)
|
:echo atan2(1, -1)
|
||||||
< 2.356194
|
< 2.356194
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
*browse()*
|
*browse()*
|
||||||
@@ -2362,7 +2355,6 @@ ceil({expr}) *ceil()*
|
|||||||
< -5.0 >
|
< -5.0 >
|
||||||
echo ceil(4.0)
|
echo ceil(4.0)
|
||||||
< 4.0
|
< 4.0
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
changenr() *changenr()*
|
changenr() *changenr()*
|
||||||
Return the number of the most recent change. This is the same
|
Return the number of the most recent change. This is the same
|
||||||
@@ -2547,7 +2539,6 @@ cos({expr}) *cos()*
|
|||||||
< 0.862319 >
|
< 0.862319 >
|
||||||
:echo cos(-4.01)
|
:echo cos(-4.01)
|
||||||
< -0.646043
|
< -0.646043
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
cosh({expr}) *cosh()*
|
cosh({expr}) *cosh()*
|
||||||
@@ -2559,9 +2550,8 @@ cosh({expr}) *cosh()*
|
|||||||
< 1.127626 >
|
< 1.127626 >
|
||||||
:echo cosh(-0.5)
|
:echo cosh(-0.5)
|
||||||
< -1.127626
|
< -1.127626
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
count({comp}, {expr} [, {ic} [, {start}]]) *count()*
|
count({comp}, {expr} [, {ic} [, {start}]]) *count()*
|
||||||
Return the number of times an item with value {expr} appears
|
Return the number of times an item with value {expr} appears
|
||||||
in |List| or |Dictionary| {comp}.
|
in |List| or |Dictionary| {comp}.
|
||||||
@@ -2849,7 +2839,6 @@ exp({expr}) *exp()*
|
|||||||
< 7.389056 >
|
< 7.389056 >
|
||||||
:echo exp(-1)
|
:echo exp(-1)
|
||||||
< 0.367879
|
< 0.367879
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
expand({expr} [, {nosuf} [, {list}]]) *expand()*
|
expand({expr} [, {nosuf} [, {list}]]) *expand()*
|
||||||
@@ -3074,7 +3063,6 @@ float2nr({expr}) *float2nr()*
|
|||||||
< -2147483647 >
|
< -2147483647 >
|
||||||
echo float2nr(1.0e-100)
|
echo float2nr(1.0e-100)
|
||||||
< 0
|
< 0
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
floor({expr}) *floor()*
|
floor({expr}) *floor()*
|
||||||
@@ -3088,8 +3076,7 @@ floor({expr}) *floor()*
|
|||||||
< -6.0 >
|
< -6.0 >
|
||||||
echo floor(4.0)
|
echo floor(4.0)
|
||||||
< 4.0
|
< 4.0
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
fmod({expr1}, {expr2}) *fmod()*
|
fmod({expr1}, {expr2}) *fmod()*
|
||||||
Return the remainder of {expr1} / {expr2}, even if the
|
Return the remainder of {expr1} / {expr2}, even if the
|
||||||
@@ -3104,7 +3091,6 @@ fmod({expr1}, {expr2}) *fmod()*
|
|||||||
< 0.13 >
|
< 0.13 >
|
||||||
:echo fmod(-12.33, 1.22)
|
:echo fmod(-12.33, 1.22)
|
||||||
< -0.13
|
< -0.13
|
||||||
{only available when compiled with |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
fnameescape({string}) *fnameescape()*
|
fnameescape({string}) *fnameescape()*
|
||||||
@@ -4195,7 +4181,6 @@ log({expr}) *log()*
|
|||||||
< 2.302585 >
|
< 2.302585 >
|
||||||
:echo log(exp(5))
|
:echo log(exp(5))
|
||||||
< 5.0
|
< 5.0
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
log10({expr}) *log10()*
|
log10({expr}) *log10()*
|
||||||
@@ -4206,16 +4191,15 @@ log10({expr}) *log10()*
|
|||||||
< 3.0 >
|
< 3.0 >
|
||||||
:echo log10(0.01)
|
:echo log10(0.01)
|
||||||
< -2.0
|
< -2.0
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
luaeval({expr}[, {expr}]) *luaeval()*
|
luaeval({expr}[, {expr}]) *luaeval()*
|
||||||
Evaluate Lua expression {expr} and return its result converted
|
Evaluate Lua expression {expr} and return its result converted
|
||||||
to Vim data structures. Second {expr} may hold additional
|
to Vim data structures. Second {expr} may hold additional
|
||||||
argument accessible as _A inside first {expr}.
|
argument accessible as _A inside first {expr}.
|
||||||
Strings are returned as they are.
|
Strings are returned as they are.
|
||||||
Boolean objects are converted to numbers.
|
Boolean objects are converted to numbers.
|
||||||
Numbers are converted to |Float| values if vim was compiled
|
Numbers are converted to |Float| values.
|
||||||
with |+float| and to numbers otherwise.
|
|
||||||
Dictionaries and lists obtained by vim.eval() are returned
|
Dictionaries and lists obtained by vim.eval() are returned
|
||||||
as-is.
|
as-is.
|
||||||
Other objects are returned as zero without any errors.
|
Other objects are returned as zero without any errors.
|
||||||
@@ -4649,8 +4633,7 @@ pow({x}, {y}) *pow()*
|
|||||||
< 65536.0 >
|
< 65536.0 >
|
||||||
:echo pow(32, 0.20)
|
:echo pow(32, 0.20)
|
||||||
< 2.0
|
< 2.0
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
prevnonblank({lnum}) *prevnonblank()*
|
prevnonblank({lnum}) *prevnonblank()*
|
||||||
Return the line number of the first line at or above {lnum}
|
Return the line number of the first line at or above {lnum}
|
||||||
that is not blank. Example: >
|
that is not blank. Example: >
|
||||||
@@ -5089,7 +5072,6 @@ round({expr}) *round()*
|
|||||||
< 5.0 >
|
< 5.0 >
|
||||||
echo round(-4.5)
|
echo round(-4.5)
|
||||||
< -5.0
|
< -5.0
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
rpcnotify({channel}, {event}[, {args}...]) {Nvim} *rpcnotify()*
|
rpcnotify({channel}, {event}[, {args}...]) {Nvim} *rpcnotify()*
|
||||||
Sends {event} to {channel} via |msgpack-rpc| and returns
|
Sends {event} to {channel} via |msgpack-rpc| and returns
|
||||||
@@ -5682,8 +5664,7 @@ sin({expr}) *sin()*
|
|||||||
< -0.506366 >
|
< -0.506366 >
|
||||||
:echo sin(-4.01)
|
:echo sin(-4.01)
|
||||||
< 0.763301
|
< 0.763301
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
sinh({expr}) *sinh()*
|
sinh({expr}) *sinh()*
|
||||||
Return the hyperbolic sine of {expr} as a |Float| in the range
|
Return the hyperbolic sine of {expr} as a |Float| in the range
|
||||||
@@ -5694,7 +5675,6 @@ sinh({expr}) *sinh()*
|
|||||||
< 0.521095 >
|
< 0.521095 >
|
||||||
:echo sinh(-0.9)
|
:echo sinh(-0.9)
|
||||||
< -1.026517
|
< -1.026517
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
sort({list} [, {func} [, {dict}]]) *sort()* *E702*
|
sort({list} [, {func} [, {dict}]]) *sort()* *E702*
|
||||||
@@ -5836,8 +5816,7 @@ sqrt({expr}) *sqrt()*
|
|||||||
:echo sqrt(-4.01)
|
:echo sqrt(-4.01)
|
||||||
< nan
|
< nan
|
||||||
"nan" may be different, it depends on system libraries.
|
"nan" may be different, it depends on system libraries.
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
str2float( {expr}) *str2float()*
|
str2float( {expr}) *str2float()*
|
||||||
Convert String {expr} to a Float. This mostly works the same
|
Convert String {expr} to a Float. This mostly works the same
|
||||||
@@ -5851,7 +5830,6 @@ str2float( {expr}) *str2float()*
|
|||||||
12.0. You can strip out thousands separators with
|
12.0. You can strip out thousands separators with
|
||||||
|substitute()|: >
|
|substitute()|: >
|
||||||
let f = str2float(substitute(text, ',', '', 'g'))
|
let f = str2float(substitute(text, ',', '', 'g'))
|
||||||
< {only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
str2nr( {expr} [, {base}]) *str2nr()*
|
str2nr( {expr} [, {base}]) *str2nr()*
|
||||||
@@ -6304,7 +6282,6 @@ tan({expr}) *tan()*
|
|||||||
< 0.648361 >
|
< 0.648361 >
|
||||||
:echo tan(-4.01)
|
:echo tan(-4.01)
|
||||||
< -1.181502
|
< -1.181502
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
tanh({expr}) *tanh()*
|
tanh({expr}) *tanh()*
|
||||||
@@ -6316,7 +6293,6 @@ tanh({expr}) *tanh()*
|
|||||||
< 0.462117 >
|
< 0.462117 >
|
||||||
:echo tanh(-1)
|
:echo tanh(-1)
|
||||||
< -0.761594
|
< -0.761594
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
|
||||||
|
|
||||||
tolower({expr}) *tolower()*
|
tolower({expr}) *tolower()*
|
||||||
@@ -6354,10 +6330,9 @@ trunc({expr}) *trunc()*
|
|||||||
< -5.0 >
|
< -5.0 >
|
||||||
echo trunc(4.0)
|
echo trunc(4.0)
|
||||||
< 4.0
|
< 4.0
|
||||||
{only available when compiled with the |+float| feature}
|
|
||||||
|
type({expr}) *type()*
|
||||||
*type()*
|
The result is a Number, depending on the type of {expr}:
|
||||||
type({expr}) The result is a Number, depending on the type of {expr}:
|
|
||||||
Number: 0
|
Number: 0
|
||||||
String: 1
|
String: 1
|
||||||
Funcref: 2
|
Funcref: 2
|
||||||
|
@@ -75,12 +75,12 @@ use of "-" and "_".
|
|||||||
This sets $LC_TIME.
|
This sets $LC_TIME.
|
||||||
Without an argument both are set, and additionally
|
Without an argument both are set, and additionally
|
||||||
$LANG is set.
|
$LANG is set.
|
||||||
When compiled with the |+float| feature the LC_NUMERIC
|
The LC_NUMERIC value will always be set to "C" so
|
||||||
value will always be set to "C", so that floating
|
that floating point numbers use '.' as the decimal
|
||||||
point numbers use '.' as the decimal point.
|
point. This will make a difference for items that
|
||||||
This will make a difference for items that depend on
|
depend on the language (some messages, time and date
|
||||||
the language (some messages, time and date format).
|
format).
|
||||||
Not fully supported on all systems
|
Not fully supported on all systems.
|
||||||
If this fails there will be an error message. If it
|
If this fails there will be an error message. If it
|
||||||
succeeds there is no message. Example: >
|
succeeds there is no message. Example: >
|
||||||
:language
|
:language
|
||||||
|
@@ -340,7 +340,6 @@ N *+find_in_path* include file searches: |[I|, |:isearch|,
|
|||||||
N *+folding* |folding|
|
N *+folding* |folding|
|
||||||
*+footer* |gui-footer|
|
*+footer* |gui-footer|
|
||||||
*+fork* Unix only: |fork| shell commands
|
*+fork* Unix only: |fork| shell commands
|
||||||
*+float* Floating point support
|
|
||||||
N *+gettext* message translations |multi-lang|
|
N *+gettext* message translations |multi-lang|
|
||||||
*+GUI_Athena* Unix only: Athena |GUI|
|
*+GUI_Athena* Unix only: Athena |GUI|
|
||||||
*+GUI_neXtaw* Unix only: neXtaw |GUI|
|
*+GUI_neXtaw* Unix only: neXtaw |GUI|
|
||||||
|
@@ -2,10 +2,6 @@ Test for floating point and logical operators.
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
:if !has("float")
|
|
||||||
: e! test.ok
|
|
||||||
: wq! test.out
|
|
||||||
:endif
|
|
||||||
:"
|
:"
|
||||||
:$put =printf('%f', 123.456)
|
:$put =printf('%f', 123.456)
|
||||||
:$put =printf('%e', 123.456)
|
:$put =printf('%e', 123.456)
|
||||||
|
@@ -255,14 +255,10 @@ EOF
|
|||||||
:py f=l[0]
|
:py f=l[0]
|
||||||
:delfunction New
|
:delfunction New
|
||||||
:py ee('f(1, 2, 3)')
|
:py ee('f(1, 2, 3)')
|
||||||
:if has('float')
|
:let l=[0.0]
|
||||||
: let l=[0.0]
|
:py l=vim.bindeval('l')
|
||||||
: py l=vim.bindeval('l')
|
:py l.extend([0.0])
|
||||||
: py l.extend([0.0])
|
:$put =string(l)
|
||||||
: $put =string(l)
|
|
||||||
:else
|
|
||||||
: $put ='[0.0, 0.0]'
|
|
||||||
:endif
|
|
||||||
:let messages=[]
|
:let messages=[]
|
||||||
:delfunction DictNew
|
:delfunction DictNew
|
||||||
py <<EOF
|
py <<EOF
|
||||||
@@ -328,12 +324,8 @@ EOF
|
|||||||
:$put =string(l)
|
:$put =string(l)
|
||||||
:let d=pyeval('{"a": "b", "c": 1, "d": ["e"]}')
|
:let d=pyeval('{"a": "b", "c": 1, "d": ["e"]}')
|
||||||
:$put =sort(items(d))
|
:$put =sort(items(d))
|
||||||
:if has('float')
|
:let f=pyeval('0.0')
|
||||||
: let f=pyeval('0.0')
|
:$put =string(f)
|
||||||
: $put =string(f)
|
|
||||||
:else
|
|
||||||
: $put ='0.0'
|
|
||||||
:endif
|
|
||||||
:" Invalid values:
|
:" Invalid values:
|
||||||
:for e in ['"\0"', '{"\0": 1}', 'undefined_name', 'vim']
|
:for e in ['"\0"', '{"\0": 1}', 'undefined_name', 'vim']
|
||||||
: try
|
: try
|
||||||
|
@@ -252,14 +252,10 @@ EOF
|
|||||||
:py3 f=l[0]
|
:py3 f=l[0]
|
||||||
:delfunction New
|
:delfunction New
|
||||||
:py3 ee('f(1, 2, 3)')
|
:py3 ee('f(1, 2, 3)')
|
||||||
:if has('float')
|
:let l=[0.0]
|
||||||
: let l=[0.0]
|
:py3 l=vim.bindeval('l')
|
||||||
: py3 l=vim.bindeval('l')
|
:py3 l.extend([0.0])
|
||||||
: py3 l.extend([0.0])
|
:$put =string(l)
|
||||||
: $put =string(l)
|
|
||||||
:else
|
|
||||||
: $put ='[0.0, 0.0]'
|
|
||||||
:endif
|
|
||||||
:let messages=[]
|
:let messages=[]
|
||||||
:delfunction DictNew
|
:delfunction DictNew
|
||||||
py3 <<EOF
|
py3 <<EOF
|
||||||
@@ -325,12 +321,8 @@ EOF
|
|||||||
:$put =string(l)
|
:$put =string(l)
|
||||||
:let d=py3eval('{"a": "b", "c": 1, "d": ["e"]}')
|
:let d=py3eval('{"a": "b", "c": 1, "d": ["e"]}')
|
||||||
:$put =sort(items(d))
|
:$put =sort(items(d))
|
||||||
:if has('float')
|
:let f=py3eval('0.0')
|
||||||
: let f=py3eval('0.0')
|
:$put =string(f)
|
||||||
: $put =string(f)
|
|
||||||
:else
|
|
||||||
: $put ='0.0'
|
|
||||||
:endif
|
|
||||||
:" Invalid values:
|
:" Invalid values:
|
||||||
:for e in ['"\0"', '{"\0": 1}', 'undefined_name', 'vim']
|
:for e in ['"\0"', '{"\0": 1}', 'undefined_name', 'vim']
|
||||||
: try
|
: try
|
||||||
|
@@ -68,7 +68,6 @@ static char *(features[]) = {
|
|||||||
"+farsi",
|
"+farsi",
|
||||||
"+file_in_path",
|
"+file_in_path",
|
||||||
"+find_in_path",
|
"+find_in_path",
|
||||||
"+float",
|
|
||||||
"+folding",
|
"+folding",
|
||||||
"-footer",
|
"-footer",
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user