Method: IsoDoc::PresentationXMLConvert#large_notation_fmt
- Defined in:
- lib/isodoc/presentation_function/math.rb
#large_notation_fmt(symbols, num) ⇒ Object
98 99 100 101 102 103 104 105 106 107 |
# File 'lib/isodoc/presentation_function/math.rb', line 98 def large_notation_fmt(symbols, num) n = symbols[:large_notation] min = BigDecimal(symbols[:large_notation_min] || "1e-6") max = BigDecimal(symbols[:large_notation_max] || "1e6") n1 = large_notation_fmt1(num, n, min, max) and symbols[:notation] = n1 symbols.delete(:large_notation) symbols.delete(:large_notation_min) symbols.delete(:large_notation_max) symbols end |