Yoko

All sides of Injection
It is currently 2025-12-21 20:05:44

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2005-08-10 20:12:22 
Offline

Joined: 2004-08-25 23:06:06
Posts: 41
Напрмер: 7/2=3.5 нужно что бы в переменную записалась только целая часть


Top
   
 Post subject:
PostPosted: 2005-08-11 00:12:50 
Offline
Junior Expert
User avatar

Joined: 2004-11-13 00:43:55
Posts: 474
Location: Киберзадроцк
Обреж миндом mind если число однозначное....
как вариант....


Top
   
 Post subject:
PostPosted: 2005-08-13 14:42:10 
Offline

Joined: 2005-07-21 17:01:07
Posts: 18
могу дать дурацкий совет - прогнать через гетглобал :-)))) пока не найдешь другого выхода
uo.setglobal('yrez',7/2)
uo.print(uo.getglobal('yrez')) # выдаст тебе тройку :-)


Top
   
 Post subject:
PostPosted: 2005-08-30 01:35:03 
Offline

Joined: 2005-08-12 03:04:00
Posts: 125
666Man666 wrote:
Обреж миндом mind если число однозначное....
как вариант....


Это что за команда?

_________________
I NEED HELP at viewtopic.php?t=4903


Top
   
 Post subject:
PostPosted: 2005-08-30 01:43:53 
Offline
Junior Expert
User avatar

Joined: 2004-11-13 00:43:55
Posts: 474
Location: Киберзадроцк
Делается проше обычным str(10/6,0) выведит целое число....
писать так str(пременная,0) запятая с нулём в конце....


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited