M

Hi to all,

this is the code in my file test.vbs :

Dim Result

Result = (2170.12 / 9.08) ' is 239

msgbox("(2170.12 / 9.08) =**" & Result & "**")

msgbox("Int(Result) =**" & Int(Result) & "**") ' Ok

Result = (2179.2 / 9.08) ' is 240

msgbox("(2179.2 / 9.08) =**" & Result & "**")

msgbox("Int(Result) =**" & Int(Result) & "**") ' Error! Why 239 ?

Result = (2188.28 / 9.08) ' is 241

msgbox("(2188.28 / 9.08) =**" & Result & "**")

msgbox("Int(Result) =**" & Int(Result) & "**") ' Ok

Any ideas?

Thanks!

this is the code in my file test.vbs :

Dim Result

Result = (2170.12 / 9.08) ' is 239

msgbox("(2170.12 / 9.08) =**" & Result & "**")

msgbox("Int(Result) =**" & Int(Result) & "**") ' Ok

Result = (2179.2 / 9.08) ' is 240

msgbox("(2179.2 / 9.08) =**" & Result & "**")

msgbox("Int(Result) =**" & Int(Result) & "**") ' Error! Why 239 ?

Result = (2188.28 / 9.08) ' is 241

msgbox("(2188.28 / 9.08) =**" & Result & "**")

msgbox("Int(Result) =**" & Int(Result) & "**") ' Ok

Any ideas?

Thanks!