mIRC Home    About    Download    Register    News    Help

Print Thread
#203000 04/08/08 07:09 PM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
There are somehow easier to divide a number three

Code:
.set %points.1 $int($calc($len($gettok(%temp,3,166)) * 2.1))
.set %points.2 $int($calc(%points.1 /2))
.set %points.3 $int($calc(%points.2 /2))


THX-

kwell #203001 04/08/08 07:34 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
I'll have to agree.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
kwell #203002 04/08/08 07:39 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Based on what you posted for code, I can't think of another way of doing it, since you aren't really dividing a number into 3 equal portions. If you were, then $calc(<number>/3) would do it.


Link Copied to Clipboard