This shows you the differences between two versions of the page.
sample_code:listroots [2018/03/14 00:18] 67.58.20.111 try3 |
sample_code:listroots [2018/03/14 08:18] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | <code JavaScript listRoots.js> | ||
- | // Demonstrate calling external programs, by Warren E. Downs (2018) | ||
- | // Based on examples by Steve Garman | ||
- | // Version that works without busybox installed | ||
- | // This program also demonstrates using Asynchronous Callbacks | ||
- | // to continue processing once the result of the external program | ||
- | // is received. | ||
- | ////////////////////////////////////////////////////////// | ||
- | function parseKb(item) { | ||
- | // | ||
- | var mult=1; | ||
- | if(item.indexOf(' | ||
- | if(item.indexOf(' | ||
- | if(item.indexOf(' | ||
- | return parseFloat(item)*mult; | ||
- | } | ||
- | |||
- | ////////////////////////////////////////////////////////// | ||
- | |||
- | </ |