Fixup for Ia424c6433

use inline_template() + .to_i rather than floor()

Change-Id: If3278578f135371896f8f98dcefa081b071ed285