You Are Here:

Community: Developer Discussion Boards

#1 Old Convert to 0..255 - 2007-09-19, 14:57

Join Date: Sep 2007
Posts: 3
GodPascal
Offline
Registered User
Hi everyone,

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

Reply With Quote

#2 Old Re: Convert to 0..255 - 2007-09-20, 00:30

Join Date: Jun 2005
Posts: 382
y.a.k
Offline
Regular Contributor
The mod operator (%) known from C/C++ exists in Python and uses the same syntax.

Code:
print 5%2
displays
Code:
1
Reply With Quote

#3 Old Re: Convert to 0..255 - 2007-09-20, 14:23

Join Date: Sep 2007
Posts: 3
GodPascal
Offline
Registered User
Thanks a lot!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Port base64 code to S60. daveice General Symbian C++ 4 2007-08-10 17:07
A easy way to convert PCM to AMR or vice versa in Series 60 SDK 2.x lighthu Symbian Media (Graphics & Sounds) 52 2006-10-31 15:05
GNU CPP::Problem to convert a 32bit ulong to double akom General Symbian C++ 0 2004-03-23 12:01
MMConverter 2.0. Doesn't convert bigger video files???? Flo0911 Streaming and Video 3 2003-07-09 16:25
To Liuxg,can you tell me how to convert audio file? gamesprite Symbian 0 2003-05-18 17:08

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia