Integer truncation occuring for large values