Bug 936740: Inline Math.ceil for double inputs where an integer is returned; r=jandem