Skip to content

Modern Finance DecimalMinusOne

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

Home › Finance › Finance › DecimalMinusOne

DecimalMinusOne

Returns minus one as a Decimal.

Syntax

DecimalMinusOne( )

Examples

#import "std/money"
using money

'' Minus one at scale 0.  Multiplying by it negates without the unary
'' operator, and it is what Sign( ) is reporting against
print DecimalMinusOne( ).ToString( )       '' -1
print DecimalMinusOne( ).Sign( )           '' -1
print DecimalMinusOne( ).IsNegative( )     '' true

print ( DecimalParse( "1.25" ).Value( ) * DecimalMinusOne( ) ).ToString( )
'' -1.25

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

Clone this wiki locally