Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
EnTerr
Roku Guru

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
1 REPLY 1
Komag
Roku Guru

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