Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.10.1979 67
- BCPL Standard
- A13 Floating point
- ______________
- There are two possible schemes for a floating point
- package in BCPL: on implementations where the cell size is
- big enough to hold the machine representation of a floating
- point number the Floating Point Language Packet may be
- implemented and where this is not possible the Floating Point
- Procedure Packet may be implemented. In either case the
- Floating Point I/O Procedures should be implemented.
- C:=A#+B
- Arithmetic Functions
- ____________________
- FPLUS(A,B,C) C:=A#+B resultis C
- FMINUS(A,B,C) C:=A#-B resultis C
- FNEG(A,B) B:=#-A resultis B
- FMULT(A,B,C) C:=A#*B resultis C
- FDIV(A,B,C) C:=A#/B resultis C
- FABS(A,B) B:=#ABS A resultis B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement