Math support for substraction or multiplication

In orient with tp3 is there a support for math() method? or some similar? I want count then substract another vertex count but i cant found how achieve it

Hi @isaactzab

via SQL or Gremlin?

Thanks

I’m currently working under gremlin. I want to have consistency for when the support comes out with the new version of tinkerpop.

@isaactzab

did you check the Math step?

https://tinkerpop.apache.org/docs/current/reference/#math-step

Thanks

if I’ve tried, but I get the following error.

groovy.lang.MissingMethodException: No signature of method:
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal.math() is applicable for argument types: (java.lang.String) values: [b + a] Possible solutions: max(), each(groovy.lang.Closure), max(java.util.Comparator), max(groovy.lang.Closure), with(groovy.lang.Closure), each(groovy.lang.Closure)

It seems you can’t stand the Math class.