Is there a sign() function in xpath

后端 未结 0 1329
终归单人心
终归单人心 2021-02-04 18:59

Is there a sign() function available in xpath? So that the following are all true:

sign(-2) == -1
sign(-1) == -1
sign( 0) ==  0
sign(+1) ==  1
sign(+2) ==  1


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题