Method: IsoDoc::PresentationXMLConvert#explicit_number_formatter_cfg
- Defined in:
- lib/isodoc/presentation_function/math.rb
#explicit_number_formatter_cfg(num, fmt) ⇒ Object
82 83 84 85 86 87 88 89 |
# File 'lib/isodoc/presentation_function/math.rb', line 82 def explicit_number_formatter_cfg(num, fmt) symbols = twitter_cldr_localiser_symbols.dup.transform_values do |v| v.is_a?(String) ? HTMLEntities.new.decode(v) : v end.merge(fmt) symbols = large_notation_fmt(symbols, num.text) [symbols[:precision] || num_precision(num.text), symbols, explicit_number_formatter_signif(num, symbols)] end |