CDbl Function

μž„μ˜μ˜ 숫자 식 λ˜λŠ” λ¬Έμžμ—΄ 식을 double ν˜•μ‹μœΌλ‘œ λ³€ν™˜ν•©λ‹ˆλ‹€.

ꡬ문


CDbl (Expression)

λ°˜ν™˜ κ°’

Double

맀개 λ³€μˆ˜:

Expression: λ³€ν™˜ν•  μž„μ˜μ˜ λ¬Έμžμ—΄ λ˜λŠ” 숫자 μ‹μž…λ‹ˆλ‹€. λ¬Έμžμ—΄ 식을 λ³€ν™˜ν•˜λ €λ©΄ 운영 체제의 κΈ°λ³Έ 숫자 ν‘œκΈ° ν˜•μ‹μ„ μ‚¬μš©ν•˜μ—¬ 숫자λ₯Ό 일반 ν…μŠ€νŠΈ("123.5")둜 μž…λ ₯ν•΄μ•Ό ν•©λ‹ˆλ‹€.

Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

예:


Sub ExampleCountryConvert
    MsgBox CDbl(1234.5678)
    MsgBox CInt(1234.5678)
    MsgBox CLng(1234.5678)
End Sub

Please support us!