edwig / BCD

Binary Coded Decimal. Research project for use with SQL_NUMERIC_STRUCT datatype
MIT License
12 stars 1 forks source link

Natural Log of 0.5 does not calculate properly #9

Closed blackjetrock closed 10 months ago

blackjetrock commented 10 months ago

When attempting to calculate 0.5^-1

the Power function uses natural logarithms. This failed to calculate 0.5 properly due to the check against epsilon not taking account of the tussen being negative. I fixed it by adding an AbsoluteValue() call to tussen.