This code is crashing when i add a second parameter. I suspect is is because of recursion, how can i fix this? how can i make sure it calls system str instead of calling the function itself?
' Enter the stock code and functions here.
FUNCTION STR(double v, sys d) as string
if v < 0 then
return str(v, d) '<-- crash here, removing second parameter fixes it.
else
return " " & str(v)
end if
END FUNCTION