Added Decimal function to library