oracle function ABS (x)

[Function] returns the absolute value of x

Parameters x, numeric expressions

[Back] Digital

 

[Example]

  select abs(100),abs(-100) from dual;

sign(x)

[Function] returns x plus-minus

Parameters x, numeric expressions

[Return] number, if the return value is 1, -1, 0, a negative return 0

 

[Example]

  select sign(100),sign(-100),sign(0) from dual;

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11120097.html