Modified Tryp to use decimals instead of doubles