What is the best way to convert Decimal to a pair of integers to get whole and fractional in python? By saying best - I mean efficient, exact and using underlaying structure of the data type. e.g.:
d = Decimal('1536310893.687185000')
whole, fractional = some_func(d)
print(whole)
1536310893
print(fractional)
687185000
I believe there is more efficient way than to just split string representation :) I also think that Decimal is stored in memory as a pair of integers, the question is how to get them? :)