@
Erel!
I know, in declaration, is float, I have capitalized it just to spot it.
Anyway the class's static name is java.lang.Float.
I've used Log() just to show what happen. I don't know other way.
So in the end if we have a variable v, declared as float, with value of 5.55 and we do v*v,
the result inside v, will be correct, right?.
What will be wrong it will be the string representation of a number, unless using FormatNumber.
But, I don't want convert numbers to strings.
I'm simply talking about very big numbers, cosmological distance, light-years, parsec and so on, where every decimal counts. This is just an example, there are other reasons where every decimal counts.
Think about trigonometric functions, but I don't want debate about them, here.
Ok, someone might think this is science-fiction, but anyway that's are the facts.
I'm not a programmer, but, what I know for sure is that I want to know, where possible, the system limits,
either toward the devices that toward B4A, to avoid, writing lot of code, and, at the end, rewrite everything,
just for a bit. Hope I was clear.
So, as suggested by agraham in the link posted by thedesolatesoul(post #2),
it would be better to use Long or BigInteger for float and double numbers.
Erel, I really like Basic4Android. It's a very nice tool, over all, the IDE.
But I'm also saying, if you push it a little forward, to make it even more useful, I think, it's not a bad idea.
What do you think about it?
@
LucaMs,
I don't have nothing against Italians.
But I would prefer to remain in this forum, at least from sharing point of view.
Or are you thinking I have a low English skill?
savesse@tiscali.it
savesse@gmail.com
Thanks to all of you
Regards
Saverio