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: [Pre-Release] Calculator
quote:
Originally posted by Mattike
Now, I'll have to make the negative numbers work... (Smilie) (e.g.: h-A)
That doesn't exists.... That is, if you follow programming logic.

If you follow the math logic they do exist, but be EXTREMELY carefull in what you do, this is far from easy to implement this in the correct way.

Look at how a real scientific calculator works with numbers in another base to get the idea on how to implement it properly...

eg: -128 in hexadecimal can be hFF81, hFFFFFF81,  hFFFFFFFFFFFFFF81 etc... convert that back and you could get hFF81 = 65409, hFFFFFF81 = 4294967169, etc. It depends not only on what method you use, but also on the amount of bits/bytes you use to define a hexadecimal/octal/binary number, etc...

My advise would be to not allow negative numbers in other bases than the decimal base.


This post was edited on 10-03-2006 at 06:58 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-03-2006 06:40 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