Hello Fred,
f.zelders--- via Amforth-devel writes: > I created a word that converts a positive double-precision number to an 8 > character string like this: > > : dpNumberToString ( d -- address count ) > <# # # # # # # # # #> ; > This works fine for positive numbers. > However I want to convert negative double-precision numbers too. > > Any idea how I can make that work? Check out the definitions of "d." "d.r". common/words/d-dot.asm common/words/d-dot-r.asm At the end of these files there is equivalent forth code. Also be sure to check out Leo Brodie's "Starting Forth", chapter 7 on numbers: http://home.iae.nl/users/mhx/sf.html Cheers, Erich -- May the Forth be with you ... _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel