I use all declared as Int32
when I try to pull the value using str () the result is always 0
I expect values ??of type
1.28606227 with str(wrr)
0.96085112 with str(hrr)
Floating point math can result in special results like “infinite” “negative infinite” and “not a number”. This isn’t a Xojo bug but a limitation of floating point arithmetic.
[quote=28488:@Marc Zeedar]integers will not do fractional math. You need to declare them as double.
Also, str() will round numbers so it’s better to use format() when outputting doubles.[/quote]
Not 100% true. Str accepts a second parameter identical to Format. Format will respect international settings, Str will not.