|
|
 | | From: | http://vmdd.tech.mylinuxisp.com/catalog/ | | Subject: | [PowerCalc 4.2E] Meets the simplest-to-the-most-complex calculation demands beautifully | | Date: | 20 Dec 2004 23:00:38 -0800 |
|
|
 | Ref: http://vmdd.tech.mylinuxisp.com/catalog/
PowerCalc 4.2E is the most powerful and flexible calculator in the world. It meets the simplest-to-the-most-complex calculation demands beautifully. It has flexible Expression support; scientific functions (eg, sin, cos, tan, asin, acos, atan, atan2, exp, ln, log, pow, sqrt); logging capability; screen print; etc. This one-of-the-kind, think-out-of-the-box calculator can access expressions from files or from the web, can save the log to a file, and much more.
PowerCalc 4.2E grows as you grow. You are invited to try this demo version. While the demo version is fully-functional, it is limited to support ONLY 10 calculations.
NOTE: PowerCalc 4.2E requires Internet Explorer 5.5 or later. Supported platforms include Win 2000, Win XP, and later.
PS: PowerCalc 4.2E can use Active-X or OLE Automation. You can use it to drive PowerBuilder OLE Automation. For example, assuming that you have user object (user) containing a public method named user_i, then you can invoke it as:
var pb_i = new ActiveXObject ("PowerBuilder.Application.9"); pb_i.LibraryList = "c:\\vt\\bin\\user.pbd"; var user_i = pb_i.createobject ("user"); user_i.alert (pb_i.LibraryList);
|
|
 | | From: | http://vmdd.tech.mylinuxisp.com/catalog/index.html | | Subject: | Re: [PowerCalc 4.2E] Meets the simplest-to-the-most-complex calculation demands beautifully | | Date: | 19 Jan 2005 21:41:30 -0800 |
|
|
 | Yesterday, I had a business requirement to do 39 time calculations and verification. For example, what is the result of: "12:30:25" + 1250 seconds.
Using PowerCalc 4.2E I quickly wrote these two functions, and use them to solve the problem.
/* Example: sec2time (123); */ function window.sec2time (n) { sec = n %60; if (sec < 10) sec = "0" + sec; hr = floor (n / 3600); remSec = n - (3600 * hr); if (hr < 10) hr = "0" + hr; min = floor (remSec / 60); if (min < 10) min = "0" + min; return hr + ":" + min + ":" + sec; }
/* Example: time2sec ("12:20:00"); */ function window.t2s (txt) { arr = txt.split (":") return (arr [0] * 3600) + (arr [1] * 60) + (arr [2] - 0); }
//Usage: //a = time2sec ("30:00:01") + time2sec ("00:10:10") //sec2time (a)
VMDD Tech - powered by sockSvr http://vmdd.tech.mylinuxisp.com/catalog/index.html
|
|
 | | From: | Manfred Maier | | Subject: | Re: [PowerCalc 4.2E] Meets the simplest-to-the-most-complex calculation demands beautifully | | Date: | Thu, 20 Jan 2005 07:38:11 +0100 |
|
|
 | Save your time use Powerbuilder (6.5)
Time lt_time lt_time = RelativeTime(12:30:25, 1250)
-- Best regards Manfred Maier N 48° 22' 36,48" --- E 10° 49' 43,17" --- (WGS84)
"http://vmdd.tech.mylinuxisp.com/catalog/index.html" schrieb im Newsbeitrag news:1106199690.770820.318260@c13g2000cwb.googlegroups.com... > Yesterday, I had a business requirement to do 39 time calculations and > verification. For example, what is the result of: > "12:30:25" + 1250 seconds. > > Using PowerCalc 4.2E I quickly wrote these two functions, and use them > to solve the problem. > > /* Example: sec2time (123); */ > function window.sec2time (n) { > sec = n %60; if (sec < 10) sec = "0" + sec; > hr = floor (n / 3600); > remSec = n - (3600 * hr); > if (hr < 10) hr = "0" + hr; > min = floor (remSec / 60); > if (min < 10) min = "0" + min; > return hr + ":" + min + ":" + sec; > } > > /* Example: time2sec ("12:20:00"); */ > function window.t2s (txt) { > arr = txt.split (":") > return (arr [0] * 3600) + (arr [1] * 60) + (arr [2] - 0); > } > > //Usage: > //a = time2sec ("30:00:01") + time2sec ("00:10:10") > //sec2time (a) > > VMDD Tech - powered by sockSvr > http://vmdd.tech.mylinuxisp.com/catalog/index.html >
|
|
|