SyntaxFix
Write A Post
Hire A Developer
Questions
If you don't mind using NumPy, then:
In [319]: real = np.array([1234.5678]) In [327]: integ, deci = int(np.floor(real)), np.asscalar(real % 1) In [328]: integ, deci Out[328]: (1234, 0.5678000000000338)