egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple calculator.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Mon Apr 09, 2012 7:58 pm    Post subject: Reply with quote

I wonder if this script can do unicode char mathematics, like, for example:

!calc (1+√(5))/2
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
FightingNavyman
Voice


Joined: 18 Jan 2011
Posts: 35

PostPosted: Tue Apr 10, 2012 1:07 am    Post subject: Reply with quote

spithash said: I wonder if this script can do unicode char mathematics, like, for example:

results are:
<~chachin> !calc (1+√(5))/2
[12:05:40am] <@R2D2> chachin: Invalid expression. Cannot calculate ''.
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Thu Apr 12, 2012 1:21 am    Post subject: Reply with quote

yeah FightingNavyman, it doesn't do unicode (utf8) that's exactly why I asked if it's possible Smile
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
PacMan1973
Voice


Joined: 08 Jun 2012
Posts: 1

PostPosted: Fri Jun 08, 2012 3:19 am    Post subject: Ignoring zeros? Reply with quote

Hey guys,

did anybody ever try to calculate something like 5/100 or 5/100000...?


<Pac-Man> !calc 5/100
<eggdrop> 5/100000 = 0.5

<Pac-Man> !calc 5/100000
<eggdrop> 5/100000 = 0.5


Any ideas, how to fix it? Shocked
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber