Abs Function

αααα‘ααβαααααβααΆααβααΆα ααβααααααβαααβαα½αΒ α

ααΆαααβααααααα α

``````
Abs (Number)
``````

Double

αααΆαααΆαααααα α

αααα½αβ α ααααααβαααββαα½αβαααα½αβ βαααβα’αααβαααβαααα‘ααβαααααβααΆααβααΆαΒ α αααα½αβαα·αααααΆαβαα½αβααΆαα α  ααααΌαβααΆαβαααα‘ααβαααβααααΆαβααΆαβααααΆααααααΌα αααααβα―βαααα½αβα’αα·αααααΆαβααααΌαβααΆαβααααααβααβααΆβαααα½αβαα·αααααΆαΒ α

α§ααΆα αααβααΌαβααΆαβαααααβααααΎβα’αα»αααα Abs ααΎααααΈβααααΆβααΆαβαα»αβααααΆβαααΆαβαααααβααΈαΒ α ααΆβααααΆαβαααα αΆααβ ααΆβααΎβα’αααβαααααΌαββαααααβααΆβαα»αΒ α

Error codes:

5 ααΆαβα αβαααααβαα·αβααααΉαααααΌα

α§ααΆα ααα α

``````
Sub ExampleDifference
Dim siW1 As Single
Dim siW2 As Single
siW1 = Int(InputBox("Please enter the first amount","Value input"))
siW2 = Int(InputBox("Please enter the second amount","Value input"))
Print "The difference is "; Abs(siW1 - siW2)
End Sub
``````