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: 
amnon
Visitor

Updated documention?

Hi.
I am writing an app where I needed to use modulo.
I looked at the documentation and found nothing (I expected to find it here: http://sdkdocs.roku.com/display/sdkdoc/BrightScript+Language+Reference#BrightScriptLanguageReference...).
I decided to just try it in the debugger and surprisingly it worked (
print 22 mod 20
resulted in 2!).
I went back to the forums and searched for "modulo". All I could find is a single forum thread - http://forums.roku.com/viewtopic.php?f=34&t=44621&p=302747&hilit=modulo#p302747.

Seems reasonable to me to expect that a feature that dates back more than 2 years would have been documented by now.

This brings me to the question - is there more updated documentation somewhere? Am I missing anything here?

This is not meant to be a rant, I would really like to hear an official Roku response.

Thanks,
Amnon
0 Kudos
4 REPLIES 4
NewManLiving
Visitor

Re: Updated documention?

In bright script it is an operator
a MOD b
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
0 Kudos
RokuMarkn
Visitor

Re: Updated documention?

It's documented in section 3.7.6 of the Brightscript Language Reference.

--Mark
0 Kudos
TheEndless
Channel Surfer

Re: Updated documention?

http://sdkdocs.roku.com/display/sdkdoc/ ... eOperators
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
amnon
Visitor

Re: Updated documention?

Thanks, I stand corrected, it is documented 🙂
0 Kudos