edwig / BCD

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

icd::Exp bug: icd::Exp(-x) is -Icd::Exp(x), should be 1/icd::Exp(x) #7

Closed sisirajaya closed 4 years ago

sisirajaya commented 4 years ago

Fix: In icd::Exp() function

// Correcting the sign if(this->GetSign() < 0 ) { result = 1.0/result; }