|
|
1.1 ! root 1: .pa 1 ! 2: .he 'ECVT, FCVT (III)'1/15/73'ECVT, FCVT (III)' ! 3: .ti 0 ! 4: NAME ecvt, fcvt -- output conversion ! 5: .sp ! 6: .ti 0 ! 7: SYNOPSIS jsr pc,ecvt ! 8: .sp ! 9: or ! 10: .sp ! 11: jsr pc,fcvt ! 12: .sp ! 13: .ti 0 ! 14: DESCRIPTION Ecvt ! 15: is called with a floating point number in fr0. ! 16: .sp ! 17: On exit, the number has been converted into a ! 18: string of ascii digits in a buffer pointed to by r0. ! 19: The number of digits produced is controlled ! 20: by a global variable "_ndigits". ! 21: ! 22: Moreover, the position of the decimal point is ! 23: contained in r2: r2=0 means the d.p. is at the ! 24: left hand end of the string of digits; ! 25: r2>0 means the d.p. is within or to the right ! 26: of the string. ! 27: ! 28: The sign of the number is indicated by r1 (0 for +; 1 for -). ! 29: ! 30: The low order digit has suffered decimal rounding ! 31: (i. e. may have been carried into). ! 32: .sp ! 33: Fcvt is identical to ecvt, except that the correct digit ! 34: has had decimal rounding for F-style output of the number ! 35: of digits specified by "_ndigits". ! 36: .sp ! 37: .ti 0 ! 38: FILES kept in /lib/liba.a ! 39: .sp ! 40: .ti 0 ! 41: SEE ALSO ftoa(III) ! 42: .sp ! 43: .ti 0 ! 44: DIAGNOSTICS -- ! 45: .sp ! 46: .ti 0 ! 47: BUGS --
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.