Added comment for trimTrailingZerosAfterDecimal
Added possibility to change number of fraction digits.