Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Abs FunctionThis standard VB function returns the absolute value of a number. SyntaxReturnsUsageThe data type of the return value matches the type of the number. If number is a variant string (vartype 8), the return value is converted to vartype 5 (double). If the absolute value evaluates to vartype 0 (Empty), the return value is vartype 3 (long). ExampleThis example finds the difference between two variables, oldacct and newacct. Sub Button_Click See AlsoExp Function |
Siebel VB Language Reference |