Re: High prescision Mathematics

"flicknemo" <[email protected]> Sat, 03 Dec 2011 10:35:56 -0000
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
Hi All,

  Javascript uses 15 decimal digits in a Win32bit pc, if you call a Math method. The Math method has most  of the functions you will ever need.  I assume that VBScript and JScript, [MS version of Javascript ] are both the same as they will be using the Windows scripting objects, powered by winapi dll calls and .NET.
  
  VBScript seems to be less used now than Javascript maybe since it is a lot bigger.  Javascript is like C/C++, and VBScript is like visual basic of course, but without the utility of the MS Visual Express gui constructor.  All these three languages [JScript,Javascript,VBScript] are interpreted, but they are well constructed, and you can do dll calls and DDE, and use OLE,  and COM or Activex Objects.  
  
  The three languages are present in Windows script on most windows pcs from the showroom.  So if you want a higher precision than usual you can set up an object in Javascript if you like C, or VBScript if you like Basic, and run the .JS by launching it to use the math for you.
  
  Those who know how to do it will be able to send messages between both simultaneous scripts, e.g. .JS and .G4C, to pass commands and get results, which could be displayed in the .G4C Script in a listview table,  in an editor or, into a 3rd party COM table, etc.  Otherwise just write append the results to a file in a form that can be opened by a spreadsheet or a database.
  
  In the case of Gui4Cli Script, you need to pass the running script some results as "strings", then store the string in a Gui4Cli variable.
  You can then use those variables in the patent $(MATH) expressions, or manipulate the digits with the string[n][m] method or use some of Gui4Cli string handling commands, or just "say $var" to put it onto the debug output screen.  You can right click that and copy the print using the context menu copy. 
  
  Another thing you could do is to sort the numbers, if you have them in a listview, or you can write them all to a buffer, which has no practical size limit, then save the buffer to a results file and lastly free the buffer memory before quitting the script run.
  
  The easier way [if it suits you] is to use a free app to do your maths.  Download my help file :
  
                http://www.autohotkey.net/~autokeyminer/Maths/Spread32.zip

password:     Spread32

Which describes free utilities and has the urls to find them.  I hope this helps.

Regards, Flicknemo.




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

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gui4cli/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/gui4cli/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/