blob: b15e62f0342ce9a17341290fdeb16d08da688a0f (
plain) (
tree)
|
|
// read in pi, ../10000.pi.txt
const fs = require('fs');
fs.readFile('../10000.pi.txt', 'utf8', (err, data) => {
if (err) {
console.error(err);
return;
}
const string_pi = data;
const big_pi = parseFloat(data);
console.log(big_pi);
});
|