Method: IsoDoc::PresentationXMLConvert#explicit_number_formatter
- Defined in:
- lib/isodoc/presentation_function/math.rb
#explicit_number_formatter(num, locale, options) ⇒ Object
72 73 74 75 76 77 78 79 80 |
# File 'lib/isodoc/presentation_function/math.rb', line 72 def explicit_number_formatter(num, locale, ) ret = numberformat_type(numberformat_extract()) l = ret[:locale] || locale precision, symbols, significant = explicit_number_formatter_cfg(num, ret) n = normalise_number(num.text) Plurimath::NumberFormatter.new(l) .localized_number(n, precision:, format: symbols.merge(significant:)) end |