Format(<value>, "<formatting convention>")
'example - outputs 2 decimalNum = 2.31321 Msgbox Format(decimalNum, "0")
Advertisements
Format(<value>, "<formatting convention>")
'example - outputs 2 decimalNum = 2.31321 Msgbox Format(decimalNum, "0")
<variable holding integer> = Int(<value that needs to be cast>)
'examples MsgBox(Int("001")) 'produces 1 MsgBox(Int(12.1)) 'produces 12