Following the thread linked by Andras, this can be fixed using 1000*round(1-i, 1) instead of 1000*(1-i) as the size parameter.
1000*round(1-i, 1)
1000*(1-i)