I think that using Math.round() would suit best your needs:

$(".ui-selected").css('font-size', Math.round(maxFont * percentage) + "px");

parseInt(12.9) // 12
Math.round(12.9) // 13
-- 
Massimo Lombardo
Linux user #437712

Reply via email to