Skip to content

Modern Finance DecimalOne

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

Home › Finance › Finance › DecimalOne

DecimalOne

Returns one as a Decimal.

Syntax

DecimalOne( )

Examples

#import "std/money"
using money

'' One at scale 0 -- the multiplicative identity, spelled out so that a
'' loop accumulating a product has something to start from
dim as Decimal acc = DecimalOne( )
for i as int32 = 1 to 3
    acc = acc * DecimalFromInt( i )
next
print acc.ToString( )        '' 6

print DecimalOne( ).ToString( )       '' 1
print DecimalOne( ).Sign( )           '' 1

Library: Finance
Category: Finance
Documented under: Nothing Becomes A Keyword

Clone this wiki locally