lib/plurimath/math/function/floor.rb in plurimath-0.2.1 vs lib/plurimath/math/function/floor.rb in plurimath-0.2.2

- old
+ new

@@ -4,9 +4,24 @@ 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") << "&#x230a;", + first_value, + Utility.ox_element("mo") << "&#x230b;", + ], + ) + end end end end end