Skip to content

Modern Finance MoneyRoundingExact

Paul Squires edited this page Oct 19, 2026 · 4 revisions

Home › Finance › Finance › MoneyRoundingExact

MoneyRoundingExact

Returns a policy that never rounds, to keep full precision or see what rounding costs.

Syntax

MoneyRoundingExact( )

Examples

#import "std/money"
using money

'' The analytical policy: RoundEach_ is false, so MoneyRound is the
'' identity and a schedule carries full precision to the end.  Use it to
'' see what the rounding is costing.
dim as MoneyRounding p = MoneyRoundingExact( )

print p.RoundEach_                       '' false

dim as Decimal d = DecimalParse( "1.23456789012345678901234567" ).Value( )
print ( MoneyRound( d, p ) = d )         '' true -- untouched

Library: Finance
Category: Finance
Documented under: Nothing Becomes A Keyword
Source: pkg/std/money/fincore.tiko in the tiko repository.

Clone this wiki locally