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

#math ...precision...

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
zorlac



Joined: 14 Jan 2005
Posts: 19
Location: South America

PostPosted: Sat Jan 06, 2007 11:08 pm    Post subject: #math ...precision... Reply with quote

Hi!
Im working on statistics reports using tintin++ ...mobs killed etc

Im curious about something
#math {xxx} {5/2} --> xxx = 2

is there any way that I can force math results to be float/double type of values?
so xxx = 2.5?
Just curious.

Thanks,Z.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sun Jan 07, 2007 8:39 am    Post subject: Reply with quote

Try 5/2.0 or 5/2.00 -- depending on the desired precision. All math stuff is 64 bit.
Back to top
View user's profile Send private message Send e-mail
zorlac



Joined: 14 Jan 2005
Posts: 19
Location: South America

PostPosted: Sun Jan 07, 2007 10:13 am    Post subject: Reply with quote

Yeah that's it.
Thank you

Z
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion 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