PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Explication about modulo result under PHP-GTK2 (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Explication about modulo result under PHP-GTK2
#443
motenai (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Explication about modulo result under PHP-GTK2 2 Months, 3 Weeks ago Karma: 0  
Hi,

I'm writing a little soft to generate a pdf file (with text and image) with the Pear class File_PDF.

With multiCell File_PDF class, it's required to indicate the line's number to paginate the text. With my pagination and font style, I calculate that I can insert 85 chars by line. So, to define automatically this number, I wrote a function with modulo... and the result is really strange...

Code:
$nbLinesMsgIndication = ($bufMsgIndicationTxtVw->get_char_count())%85;
print $bufMsgIndicationTxtVw->get_char_count(); // => 142
print $nbLinesMsgIndication; // => 57 !!!!
Someone have an explication about this strange modulo result ??? Thanks Mote
 
  The administrator has disabled public write access.
#444
motenai (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Re:Explication about modulo result under PHP-GTK2 2 Months, 3 Weeks ago Karma: 0  
Oups ! Stupid question ! It's time to me to go in the bed... arf... Sorry guys !!!!
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Copyright © 2006-2008. kksou.com. All Rights Reserved