Prevent 2 * "warning: converting to 'int' from 'double'"