Sha256: 57b5e72acdba4d475e341637a78c9bd5615b91b695d0c000c07a0f1e36a6f325
Contents?: true
Size: 381 Bytes
Versions: 2
Compression:
Stored size: 381 Bytes
Contents
module Danica class Function class Division < Function variables :numerator, :denominator def to_f numerator.to_f / denominator.to_f end private def tex_string "\\frac{#{numerator.to_tex}}{#{denominator.to_tex}}" end def gnu_string "#{numerator.to_gnu}/#{denominator.to_gnu}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
danica-1.2.0 | lib/danica/function/division.rb |
danica-1.1.0 | lib/danica/function/division.rb |