Add rounding functionalties (#2672)

* added math round

* added math floor

* added math ceil

* added math.md examples

* moved the detection of nonnumerical values in ceil/floor/round

* math round now works on streams

* math floor now works on streams

* math ceil now works on streams
This commit is contained in:
morbatex
2020-10-22 02:18:27 +02:00
committed by GitHub
parent cc06ea4d87
commit 0d8064ed2d
8 changed files with 329 additions and 3 deletions

View File

@ -223,6 +223,9 @@ pub fn create_default_context(interactive: bool) -> Result<EvaluationContext, Bo
whole_stream_command(MathSummation),
whole_stream_command(MathVariance),
whole_stream_command(MathProduct),
whole_stream_command(MathRound),
whole_stream_command(MathFloor),
whole_stream_command(MathCeil),
// File format output
whole_stream_command(To),
whole_stream_command(ToCSV),