~ubuntu-branches/debian/lenny/ucblogo/lenny

« back to all changes in this revision

Viewing changes to helpfiles/form

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2001-09-02 15:15:21 UTC
  • Revision ID: james.westby@ubuntu.com-20010902151521-doo25fmfq7v3pxkg
Tags: upstream-5.1
ImportĀ upstreamĀ versionĀ 5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
FORM num width precision
 
2
 
 
3
        outputs a word containing a printable representation of "num",
 
4
        possibly preceded by spaces (and therefore not a number for
 
5
        purposes of performing arithmetic operations), with at least
 
6
        "width" characters, including exactly "precision" digits after
 
7
        the decimal point.  (If "precision" is 0 then there will be no
 
8
        decimal point in the output.)
 
9
 
 
10
        As a debugging feature, (FORM num -1 format) will print the
 
11
        floating point "num" according to the C printf "format", to allow
 
12
 
 
13
                to hex :num
 
14
                op form :num -1 "|%08X %08X|
 
15
                end
 
16
 
 
17
        to allow finding out the exact result of floating point operations.
 
18
        The precise format needed may be machine-dependent.
 
19
 
 
20