USAGE: floatexpr [] [| ..] evaluates expressions and writes result to stdout. is either a floating point number OR the name of a textfile, containing a floating point number, optionally preceded by a string of letters and/or underscore(s). If this is not the last but the file does not exist and a default value is defined, that value is used instead. After "-prefix" and "-suffix" is interpreted as a literal string. FUNCTION: -add sum of s. Default: 0. -count number of s. Must be first and only function. -cosr cos() of in radians. -cosd cos() of in degrees. -cosg cos() of in grads. -diff sum of all but last s, minus last . Default: 0. -div divide by last . Default: 1. -exp =exp(). Default: 1. -exp2 =2^. Default: 1. -exp10 =10^. Default: 1. -harm write series. Must be first and only function. -int result rounded off to nearest integer value. -ln =ln(). Default: 0. -log10 =10log(). Default: 0. -log2 =2log(). Default: 0. -mean mean value of s. Default: 0. -mul product of s. Default: 1. -muldiv product of all but last s, divided by last . Default: 1. -prefix insert before result. -rms root mean square of s. Default: 0. -series write series. Must be first and only function. -sinr sin() of in radians. -sind sin() of in degrees. -sing sin() of in grads. -sqrt square root of absolute value of result. -sub sum of all but last s, minus last . Default: 0. -suffix append after result. -sum sum of s. Default: 0. -sumdiv sum of all but last s, divided by last . Default: 1. -tanr tan() of in radians. -tand tan() of in degrees. -tang tan() of in grads. NOTES: the last can also be the result of a . -prefix and -suffix should not be the last function. FORMAT: -d write result with digit mantissa, no mantissa for integer values. -f always write result with digit mantissa. -z write rounded off result preceded by zeros in symbols. -. always write result in symbols with digit mantissa. Default: -12d . On inability to read a number or open a file no output is written to stdout. Error messages are written to stderr. Copyright (C) 2011 by Harm J. Schoonhoven Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. VERSION: Jun 24 2014