I want to multiply more than 10K probability estimates (values between 0 and 1). I am using Ruby. And I used BigDecimal to store the small numbers like,
prod = BigDecimal.new("1")
prod = prod * BigDecimal.new("#{ngramlm[key]}")
but after few iterations prod becomes zero. Could you please help me how to store the final product in prod(which would be a very small number near to zero)!!