MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / RoundFunction

Method RoundFunction

src/function/roundfunction.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "rmath.h"
23
24RoundFunction::RoundFunction() : Function("round")
25{
26 addDescription(tr("Returns the number value rounded up, or down, to the nearest integer."));
27 addParameter("value");
28 addParameter("places");
29}
30
31Value& RoundFunction::evaluate(const Context& ctx) const
32{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected