Problem is in HOW you declare a function:
Function PathX(t#) -> will return an integer
end function
Function PathX%(t#) -> will return an integer
Function PathX#(t#) -> will return a float (!)
Function PathX$(t#) -> will return a string
Function PathX.enemey(t#) -> will return a type
If your function is for example called: "Function PathX#(t#)" then it will always return a float! Even if you call the function within your code without the # sign, for example, these two will return the SAME result:
return# = PathX(1.2)
return# = PathX#(1.2)
d.
Function PathX(t#) -> will return an integer
end function
Function PathX%(t#) -> will return an integer
Function PathX#(t#) -> will return a float (!)
Function PathX$(t#) -> will return a string
Function PathX.enemey(t#) -> will return a type
If your function is for example called: "Function PathX#(t#)" then it will always return a float! Even if you call the function within your code without the # sign, for example, these two will return the SAME result:
return# = PathX(1.2)
return# = PathX#(1.2)
d.