Pure Programmer
Blue Matrix


Cluster Map

Project: Total Filter (Floating Point)

Write a filter program that accepts text representations of floating point values, one per line, and then computes and prints the total. The program should print an error to STDERR if a line of input can't be parsed as a floating point value.

Output
$ node TotalFilterFP.js < ../../data/text/FPList1.txt 520.2396990999999 $ node TotalFilterFP.js < ../../data/text/FPList2.txt 50273.76537829997 $ node TotalFilterFP.js < ../../data/text/FPList3.txt 4990773.230912989

Solution