split-decimal ( str -- neg? dollars cents )


Vocabulary
money

Inputs
stran object


Outputs
neg?an object
dollarsan object
centsan object


Definition


: split-decimal ( str -- neg? dollars cents )
"." split1 [ "-" ?head swap ] dip ;