Zero-delimited pictured numeric output 
Author Message
 Zero-delimited pictured numeric output

It has occurred to me that it's trivially simple to modify the a Forth
system such that all pictured numeric output within an
application produces zero-delimited strings:

: <#  <# 0 hold ;
: #>  #> 1- ;

The redefinition of <# places a zero-byte at the end of the generated
string, and the redefinition of #> adjusts the resulting string length
to exclude the zero-byte.

--
Neal Bridges
< http://www.*-*-*.com/ ~nbridges/> Home of the Quartus Forth compiler!

Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.



Thu, 15 Nov 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Pictured numeric output

2. Numeric and Zero Validations

3. Tab Delimited output

4. Tab-delimited output file

5. Writing Form Output to a Comma Delimited File

6. listnlabel - blank if zero on pictures

7. Show zero using PICTURE ?

8. PICTURE for leading zeros?

9. Format numeric picture at runtime?

10. Swiss numeric and Currency pictures ?!?!

11. Picture Tokens - Numeric to String Format

12. Numeric Picture & Decimal Places

 

 
Powered by phpBB® Forum Software