converting float to int because Vim can't use mod with floats

This commit is contained in:
Alan Hamlett 2013-07-14 10:49:32 -07:00
parent c36bf9ee36
commit ae0c9cbbb9
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ let s:VERSION = '0.2.2'
let duration = round(duration / 60)
let units = 'minute'
if duration >= 60
let remainder = duration % 60
let remainder = float2nr(round(duration)) % 60
if remainder > 0
let minutes = printf(" and %f minute", remainder)
if remainder > 1