What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to check the Plus! version

Pages: (2): « First « 1 [ 2 ] Last »
How to check the Plus! version
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: dodgy bug in scripting
quote:
Originally posted by Choli
quote:
Originally posted by CookieRevised
Seems like single precision doesn't yield the accurate result, double precision does.
4.1 is a periodic number in base 2, it doesn't matter if you choose single or double precission
That page I linked to does tell/show it makes a big difference though (also the docs I've read on it -quickly- say it does) :/ ....

---------------------

EDIT:

- Requested thread to be moved to public scripting forum.

- For those who whish to check versions, use something like this to avoid the floating point trap and to have an as accurate as possible build check:
code:
function _isValidVersion(nSoftwareBuild) {
        return parseInt(MsgPlus.Version) * 1000 + MsgPlus.VersionBuild >= nSoftwareBuild
}
Where nSoftwareBuild is a number in the form of 4244, 4250, 5398, etc...

This is the exact same method used by Plus! itself to check for updates and stuff. And since the major version number and build number will always uniquely define the installed version (the minor version number doesn't matter).

The function will return true if the user's version is equal or higher than the requested softwarebuild.

This post was edited on 01-13-2007 at 08:22 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-17-2006 10:00 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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