Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试将加法的结果分配给寄存器变量
:let @a=40-39995.96
并得到一个E806: using Float as a String错误。我怎样才能忽略这个错误?
E806: using Float as a String
您可以将表达式的结果转换为字符串,使用string(expr)
string(expr)
let @a=string(40-39995.96)
也检查一下:
:h string()