lib/isodoc/presentation_function/math.rb in isodoc-2.0.4 vs lib/isodoc/presentation_function/math.rb in isodoc-2.0.5

- old
+ new

@@ -18,9 +18,10 @@ def localize_maths(node, locale) node.xpath(".//m:mn", MATHML).each do |x| num = BigDecimal(x.text) precision = /\./.match?(x.text) ? x.text.sub(/^.*\./, "").size : 0 x.children = localized_number(num, locale, precision) + rescue ArgumentError => e end end # By itself twitter-cldr does not support fraction part digits grouping # and custom delimeter, will decorate fraction part manually