What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release] Calculator (v1.20.011)

[Release] Calculator (v1.20.011)
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: [Pre-Release] Calculator
quote:
Originally posted by Mattike
quote:
Originally posted by phalanxii
In the QC, I can't quite use the letters (A-F) for hex, because the calculator doesn't parse them.
I am aware of this. They were just meant to note that you will be able to use hexadecimal values, but not by simply typing them. I'll make the script to use special functions to let the user specify what mode should be used. For example, I'll make Hex(FF) to result in 255, so you can calculate with different modes. (e.g.: substracting hexadecimal numbers from binary numbers and returning the octal result)
do as JScript does (and other languages) add a prefix to the numbers instead of creating extra functions:
eg:

0x?? for binary numbers
or h01DF4B, o1472, b0110, etc

it is a lot easier/shorter to write:

/calc h01DF4B + h412F

than:

/calc Hex(01DF4B) + Hex(412F)

Also, using the function Hex() like Hex(FF) doesn't make sense when you compare it to how such functions work in other languages and stuff. Hex() is to convert something to a hex number, not vice versa. Just like Cos() is used to calculate the cosinus not to convert a cosinus to something else.

And then you could still use those extra functions, but to change the output to some base. which would be more logical IMHO. eg:

/calc Oct(h01DF4B + b110110)



This post was edited on 10-02-2006 at 05:58 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-02-2006 05:54 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Release] Calculator (v1.20.011) - by Matti on 09-29-2006 at 09:58 AM
RE: [WIP] Calculator - by Spunky on 09-29-2006 at 11:22 AM
RE: [WIP] Calculator - by Matti on 09-29-2006 at 12:33 PM
RE: [WIP] Calculator - by markee on 09-29-2006 at 02:17 PM
RE: [WIP] Calculator - by Matti on 09-29-2006 at 04:43 PM
RE: [WIP] Calculator - by Chris4 on 09-29-2006 at 06:30 PM
RE: [WIP] Calculator - by Matti on 09-29-2006 at 06:39 PM
RE: [WIP] Calculator - by WDZ on 09-29-2006 at 06:51 PM
RE: RE: [WIP] Calculator - by Chris4 on 09-29-2006 at 06:53 PM
RE: RE: RE: [WIP] Calculator - by Jimbo on 09-29-2006 at 06:58 PM
RE: [WIP] Calculator - by prashker on 09-29-2006 at 06:56 PM
RE: [WIP] Calculator - by Chancer on 09-29-2006 at 07:50 PM
RE: [WIP] Calculator - by vaccination on 09-29-2006 at 11:35 PM
RE: [WIP] Calculator - by phalanxii on 09-30-2006 at 12:39 AM
RE: [WIP] Calculator - by alexp2_ad on 09-30-2006 at 12:43 AM
RE: [WIP] Calculator - by NanaFreak on 09-30-2006 at 01:02 AM
RE: [WIP] Calculator - by Matti on 09-30-2006 at 10:39 AM
RE: [WIP] Calculator - by Jimbo on 09-30-2006 at 10:40 AM
RE: [WIP] Calculator - by Matti on 09-30-2006 at 10:45 AM
RE: RE: [WIP] Calculator - by Jimbo on 09-30-2006 at 10:48 AM
RE: [WIP] Calculator - by Matti on 09-30-2006 at 11:40 AM
RE: [WIP] Calculator - by NanaFreak on 09-30-2006 at 12:55 PM
RE: [Pre-Release] Calculator - by Matti on 09-30-2006 at 01:10 PM
RE: [Pre-Release] Calculator - by Felu on 09-30-2006 at 01:42 PM
RE: [Pre-Release] Calculator - by duck! on 09-30-2006 at 01:47 PM
RE: [Pre-Release] Calculator - by Matti on 09-30-2006 at 01:49 PM
RE: [Pre-Release] Calculator - by alexp2_ad on 09-30-2006 at 03:35 PM
RE: [Pre-Release] Calculator - by Lourix on 09-30-2006 at 03:39 PM
RE: [Pre-Release] Calculator - by Matti on 09-30-2006 at 03:39 PM
RE: [Pre-Release] Calculator - by Shondoit on 09-30-2006 at 07:35 PM
RE: [Pre-Release] Calculator - by Spunky on 09-30-2006 at 07:45 PM
RE: [Pre-Release] Calculator - by Andrew_H on 09-30-2006 at 08:25 PM
RE: [Pre-Release] Calculator - by Spunky on 09-30-2006 at 08:31 PM
RE: [Pre-Release] Calculator - by davidpolitis on 09-30-2006 at 09:24 PM
RE: [Pre-Release] Calculator - by Zahid™ on 09-30-2006 at 09:32 PM
RE: [Pre-Release] Calculator - by vaccination on 09-30-2006 at 11:33 PM
RE: [Pre-Release] Calculator - by phalanxii on 10-01-2006 at 12:32 AM
RE: [Pre-Release] Calculator - by Matti on 10-02-2006 at 05:03 PM
RE: RE: [Pre-Release] Calculator - by CookieRevised on 10-02-2006 at 05:54 PM
RE: [Pre-Release] Calculator - by Matti on 10-03-2006 at 03:56 PM
RE: [Pre-Release] Calculator - by CookieRevised on 10-03-2006 at 06:40 PM
RE: [Pre-Release] Calculator - by Shondoit on 10-03-2006 at 06:44 PM
RE: [Pre-Release] Calculator - by CookieRevised on 10-03-2006 at 06:56 PM
RE: [Pre-Release] Calculator - by Matti on 10-04-2006 at 07:57 AM
RE: [Pre-Release] Calculator - by phalanxii on 10-05-2006 at 10:27 AM
RE: [Pre-Release] Calculator - by Matti on 10-05-2006 at 05:54 PM
RE: [Release] Calculator (v1.20.011) - by Matti on 12-20-2006 at 10:16 AM
RE: [Release] Calculator (v1.20.011) - by Plan-1130 on 02-09-2008 at 04:43 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On