Doing a math formula such as " i*1 " certainly works because you declared the variable "i" as an Integer.
However, when using arithmetic problems such as " i*.1 ", variable "i" will be invalid. This is because, earlier, you declared "i" As an Integer.

In Visual Basic, decimal numbers are rather known as "Floating-Point numbers".

Therefore, instead of using Integer to declare "i", you should use either of the following:

- Single (4 bytes)
- Double (8 bytes)
- Decimal (16 bytes)

Therefore, here's a solution :

--------------------------------------------------------------------------

Function result(ByVal i As Double) As Integer

' ---> your codes here <---

End Function

--------------------------------------------------------------------------


thks,
FYRe