Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 11

ifToStr = ?

There is apparently ifToStr interface - shouldn't this be documented?

I was using toStr() for int but now need it for float - checked in docs, nothing. Then i tried and what do you know, it worked. Some research says

BrightScript Debugger> ? findMemberFunction(1.0, "toStr")
<Interface: ifToStr>

BrightScript Debugger> ? findMemberFunction(1d, "toStr")
<Interface: ifToStr>

So it's there for floats/double at least. Should put a good word.
0 Kudos
Level 10

Re: ifToStr = ?

Is that new? I thought I remember having a problem in the past where I forgot a value would be a float instead of an integer, and I got crashes with toStr() (but I could be remember wrong)
0 Kudos