TrevorBradley
Active Member
- Joined
- Nov 6, 2007
- Messages
- 732
New problem, this time specific to Fenix (0.92) and not the GP2X interpreter.
I can't seem to get a function to return a String. I define the function type, try returning a string "foo", and I get back "14". It looks like an int pointer to something. If I run the function over again it seems to increment...
I'm trying to create a function that takes a float and cuts it down to something more readable (10.00001 -> 10, 9.145252351 -> 9.14)
Any ideas on how to do this? Thanks in advance.
I can't seem to get a function to return a String. I define the function type, try returning a string "foo", and I get back "14". It looks like an int pointer to something. If I run the function over again it seems to increment...
I'm trying to create a function that takes a float and cuts it down to something more readable (10.00001 -> 10, 9.145252351 -> 9.14)
Any ideas on how to do this? Thanks in advance.