Formatted numeric output: Difference between revisions

Content deleted Content added
Line 787: Line 787:
Type: -123 s>d 8 d.0
Type: -123 s>d 8 d.0
Result: -00000123 ok</lang>
Result: -00000123 ok</lang>
===={{header|Detail}}====
Forth's number formatting words are different than many other languages because they are active code rather than using a pattern string. This small set of seven routines ( >DIGIT <# #> # #S HOLD SIGN ) allow arbitrary number formatting of double precision and single precision numbers. The output is typically a Forth style stack-string consisting of an address and a length.


=={{header|Fortran}}==
=={{header|Fortran}}==