1 :Info: use_ep_basic: 11/08/83 use_ep_basic 2 3 Syntax: use_ep_basic 4 5 Function: Set the precision of BASIC programs run under the FAST subsystem to 6 be extended precision. This may be used to reset the precision from the 7 single precision mode. 8 9 10 Notes: Single and extended precision programs should not be run at the same 11 time because the numeric arguments and numeric files are not compatible. The 12 convert_numeric_file command is available for converting numeric files from 13 single to extended and vice versa. 14 15 The precision state is saved when the FAST subsystem is entered, and is 16 reset to the saved state when exited. Thus, use of the use_sp_basic and 17 use_ep_basic commands will not affect the BASIC environment outside of the 18 FAST subsystem. 19 20 21 A new statement type has been added to provide a means of dynamically 22 controlling the number of digits in a numeric value to be printed as output. 23 Its syntax is: 24 setdigits formula 25 26 The value expressed by formula is truncated to its integer value, and 27 represents the number of digits to be printed by all future PRINT statements 28 until another SETDIGITS statement is executed, or until the end of program 29 execution. The value can be 1 through 19. This statement applies only to 30 nonintegers. The tab spacing is adjusted to accomodate the current number 31 length. However, the spacing will never be less than the default. 32 33 34 :Info: use_sp_basic: 11/08/83 use_sp_basic 35 36 Syntax: use_sp_basic 37 38 Function: Set the precision of BASIC programs run under the FAST subsystem to 39 be single precision. This is the default precision, and may be used to reset 40 the precision from the extended mode. 41 42 43 Notes: To get extended precision, invoke the use_ep_basic command with no 44 arguments. Extended precision stays on until the use_sp_basic command is 45 issued. 46 47 Single and extended precision programs should not be run at the same time 48 because the numeric arguments and numeric files are not compatible. The 49 convert_numeric_file command is available for converting numeric files from 50 single to extended and vice versa. 51 52 The precision state is saved when the FAST subsystem is entered, and is 53 reset to the saved state when exited. Thus, use of the use_sp_basic and 54 use_ep_basic commands will not affect the BASIC environment outside of the 55 FAST subsystem. 56 57 58 A new statement type has been added to provide a means of dynamically 59 controlling the number of digits in a numeric value to be printed as output. 60 Its syntax is: 61 setdigits formula 62 63 The value expressed by formula is truncated to its integer value, and 64 represents the number of digits to be printed by all future PRINT statements 65 until another SETDIGITS statement is executed, or until the end of program 66 execution. The value can be 1 through 19. This statement applies only to 67 nonintegers. The tab spacing is adjusted to accomodate the current number 68 length. However, the spacing will never be less than the default.