×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    3

    Convert to 0..255

    Hi everyone,

    What can I do in pys60 instead of this C++ code?
    C++ Code : var%256


  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    386

    Re: Convert to 0..255

    The mod operator (%) known from C/C++ exists in Python and uses the same syntax.

    Code:
    print 5%2
    displays
    Code:
    1

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    3

    Re: Convert to 0..255

    Thanks a lot!

Similar Threads

  1. Port base64 code to S60.
    By daveice in forum Symbian
    Replies: 4
    Last Post: 2007-08-10, 16:07
  2. A easy way to convert PCM to AMR or vice versa in Series 60 SDK 2.x
    By lighthu in forum Symbian Media (Closed)
    Replies: 52
    Last Post: 2006-10-31, 14:05
  3. Replies: 0
    Last Post: 2004-03-23, 11:01
  4. MMConverter 2.0. Doesn't convert bigger video files????
    By Flo0911 in forum Streaming and Video
    Replies: 3
    Last Post: 2003-07-09, 15:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×