Forum Discussion

EnTerr's avatar
EnTerr
Roku Guru
12 years ago

No Str() for Double?

If i call `str()` on Double, seems it gets coerced to Float first and that doesn't always end well:
BSD> d = 1e40#
BSD> ? d, type(d)
1e+40 Double
BSD> ? str(d)
inf
BSD> ? d.toStr()
Member function not found in BrightScript Component or interface. (runtime error &hf4) in $LIVECOMPILE(153)

Comments? Is there interface like ifIntOps.toStr() tucked somewhere?
No RepliesBe the first to reply