Return Values?

Blitz3D Forums/Blitz3D Programming/Return Values?

Cousin Gilgamesh(Posted 2005) [#1]
Is it true that functions can only return integers? I was working on some stuf and suddenly realized that this was the case, at least for my code. any time I returned a float or an int, it was always caste as an integer. Is there any way to return float values? thanks.


flounder22001(Posted 2005) [#2]
function TimesTwo#(value#)
return value*2.0
end function

print TimesTwo(1.8)


Cousin Gilgamesh(Posted 2005) [#3]
Oh I see. Thanks