import numpy as np a=np.int64(288012050) print(type(a)) print(a) a.tofile("freq.txt") b=np.int64(1717915000) print(type(b)) print(b) b.tofile("freq_AD.txt")