mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-11 12:33:47 -05:00
Fixed s:Sum
Was previously converting to integer so loosing float data after decimal place, converting to float instead now.
This commit is contained in:
@@ -77,7 +77,7 @@ function! s:Sum(list) "{{{2
|
||||
if type(item) == type(1) || type(item) == type(1.0)
|
||||
let result = result + item
|
||||
elseif type(item) == type('')
|
||||
let result = result + str2nr(item)
|
||||
let result = result + str2float(item)
|
||||
elseif type(item) == type([])
|
||||
let result = result + s:Sum(item)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user