Method: IsoDoc::PresentationXMLConvert#large_notation_fmt1
- Defined in:
- lib/isodoc/presentation_function/math.rb
#large_notation_fmt1(num, notation, min, max) ⇒ Object
109 110 111 112 113 114 115 116 |
# File 'lib/isodoc/presentation_function/math.rb', line 109 def large_notation_fmt1(num, notation, min, max) notation.nil? || notation == "nil" and return nil val = BigDecimal(num).abs val.zero? and return nil val < min and return notation val > max and return notation nil end |