TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

tintin 2....3 problem with #math

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
abedour



Joined: 29 Oct 2010
Posts: 37

PostPosted: Fri Oct 29, 2010 6:36 pm    Post subject: tintin 2....3 problem with #math Reply with quote

Not so sure this is even a problem, however when I do #math blah {1 / 2};#showme $blah I would expect 0.5. Unfortunately, it displays only 0 and no integers after the decimal. Is there a config I need to change to have this display properly? Or is this simply not supported right now?


(To fix it make it do what I wanted, I just did 2/1 and made the if check on divisions to see if the action should fire.. but it would be cool if the other way worked Wink)
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Fri Oct 29, 2010 10:22 pm    Post subject: Reply with quote

You'll have to use:

#math blah {1.0 / 2}

For 2 digit precision use 1.00, etc.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group