【发布时间】:2012-05-07 00:41:24
【问题描述】:
我仍然对 Vim 中的数字有问题:
p.e.
let a = 1.02 | let b = '10000000' | let total = a*b | echo total --> 1.02e7
我想避免使用指数。 我怎样才能有输出 10200000 ?
let a = 4000000000 | let b = '1' | let total = a+b | echo total --> -294967295
为什么这会给出错误的输出?
Tnx
【问题讨论】:
标签: vim floating-point numbers integer exponential