You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to convert floats to Decimal but somehow the current Double I got out of Decimal when looking at it using ToDouble would give me only the round part of the double. I figured that my floats were not native python but numpy float64 . This issue happens only with numpy floats..
importclrfromSystemimportDecimalimportnumpyasnpd=45.5assertd==np.array([d])[0] # should be fineassertDecimal(d) ==Decimal(np.array([d])[0]) # assertion error