money vocabulary
Factor handbook ยป Vocabulary index


Summary
Utility for calculating money with rationals

Metadata
Authors:Doug Coleman, Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
not-an-integer tuplex


Parsing words
WordSyntax
DECIMAL:


Symbol words
currency-token


Ordinary words
WordStack effect
dollars/cents( dollars -- dollars cents )
format-money( dollars cents -- string )
money.( number -- )
money>string( number -- string )
not-an-integer( x -- * )
parse-decimal( str -- ratio )
split-decimal( str -- neg? dollars cents )


Class predicate words
WordStack effect
not-an-integer?( object -- ? )


Files


Metadata files