[#FeeFrac-EvaluateFee] = xref:FeeFrac.adoc[FeeFrac]::EvaluateFee :relfileprefix: ../ :mrdocs: Compute the fee for a given size `at_size` using this object's feerate. == Synopsis Declared in `<util/feefrac.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<bool RoundDown> int64_t EvaluateFee(int32_t at_size) const noexcept; ---- == Description This effectively corresponds to evaluating (this‐>fee * at_size) / this‐>size, with the result rounded towards negative infinity (if RoundDown) or towards positive infinity (if !RoundDown). Requires this‐>size > 0, at_size >= 0, and that the correct result fits in a int64_t. This is guaranteed to be the case when 0 <= at_size <= this‐>size. == Return Value The fee corresponding to at_size at this object's feerate. == Parameters [cols="1,4"] |=== | Name| Description | *at_size* | The size to evaluate the fee at. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#