Sha256: 1bca008ef3fd1c828e9982583978161ae19418f94f046d859d2781ee1df683f0
Contents?: true
Size: 634 Bytes
Versions: 17
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Floor < UnaryFunction def to_latex "\\lfloor #{parameter_one.to_latex} \\rfloor" end def to_mathml_without_math_tag first_value = parameter_one&.to_mathml_without_math_tag Utility.update_nodes( Utility.ox_element("mrow"), [ Utility.ox_element("mo") << "⌊", first_value, Utility.ox_element("mo") << "⌋", ], ) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems