Method: IsoDoc::PresentationXMLConvert#num_precision
- Defined in:
- lib/isodoc/presentation_function/math.rb
#num_precision(num) ⇒ Object
118 119 120 121 122 123 124 |
# File 'lib/isodoc/presentation_function/math.rb', line 118 def num_precision(num) precision = nil /\.(?!\d+e)/.match?(num) and precision = twitter_cldr_localiser_symbols[:precision] || num.sub(/^.*\./, "").size precision end |