Collabora Office 24.04 Help
μ«μ μμ μ λκ°μ ꡬν©λλ€.
Abs (Number)
Double
Number: μ λκ°μ ꡬν μμμ μ«μ μμ λλ€. 0μ λΉλ‘―ν μμλ κ·Έλλ‘ κ΅¬ν΄μ§λ©° μμλ μμλ‘ λ³νλ©λλ€.
λ€μμ Abs ν¨μλ₯Ό μ¬μ©νμ¬ λ κ°μ μ°¨λ₯Ό κ³μ°νλ μμ λλ€. μ΄λ€ κ°μ λ¨Όμ μ λ ₯νλ μκ΄μ΄ μμ΅λλ€.
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