Avoid extra type cast: Use ceil -> double instead of ceill -> long