This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Simple calculator.

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

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
F
FightingNavyman
Voice
Posts: 35
Joined: Tue Jan 18, 2011 12:39 pm

Post by FightingNavyman »

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 ''.
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

yeah FightingNavyman, it doesn't do unicode (utf8) that's exactly why I asked if it's possible :)
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
P
PacMan1973
Voice
Posts: 1
Joined: Fri Jun 08, 2012 3:14 am

Ignoring zeros?

Post by PacMan1973 »

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? :shock:
Post Reply