Your example function is slightly unusual, in that it does not use its parameters, but in general a VDM function could look like this:
func: int * real -> real
func(var1, var2) ==
var1 + var2;
Note that the function is "pure" in the sense that it is just an expression involving its parameters (it can also reference constants and call other functions). For more details, I would recommend you look at the Language Reference Manual.