tripson wrote:Hi.
I think there is a bug in this script... when you want to calculate a division (!g 100/5), first of all it shows how many results is on google, then it shows calculated result, and after that it shows couple of google results... with other operations, theres no problem, just with division...
thanks
tripson
None of those you mention are bugs of any sort. This happens because there are more results found than just the 'google calculation answer'. When you
!g 100/5 (click here for web based google results), you get exactly what you see on the web given on irc. This is NOT a bug, this is entirely intentional, there is nothing to fix.
Notice when the only result google gives is the 'google calculation answer', only it is given by the script without the total results. This is also NOT a bug, this is entirely intentional, there is nothing to fix.
Remember as well, this is how I've intended it to work for me in channels where I presently idle. If you want ONLY the google calculation answer given whenever they are present, you will need to hack this in yourself as I have no plans to ever do so (this is a google script after all
). I enjoy having the script work exactly (with all the good, the bad and the ugly intact) as google does. I've gone out of my way to tailor sections to fit other users whims, but this part I am dead set against changing.
The reason I'm against it is quite simple. 'Google calculation answers' are interpreted in the same way 'did you mean' are. The script pretty much handles them in the same area allowing them to be inserted as results, rather than given as the only reply (this isn't merely a calculation script, see
). In this way it becomes closer to web based google (the goal), which is the intention (soul) of this script.