Skip to content

Modern Finance DecimalFromUInt

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

Home › Finance › Finance › DecimalFromUInt

DecimalFromUInt

Returns an unsigned 64-bit integer as a Decimal, exactly.

Syntax

DecimalFromUInt( u )

Examples

#import "std/money"
using money

'' A ULONGINT, exactly.  The whole 64-bit range fits inside the 96-bit
'' mantissa, so nothing is lost at the top end either
print DecimalFromUInt( 0ull ).ToString( )   '' 0
print DecimalFromUInt( 18446744073709551615ull ).ToString( )
'' 18446744073709551615

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

Clone this wiki locally