Use int*2 instead of long*2 to hold double value.