Models 707B and 708B Switching Matrix Reference Manual
format.asciiprecision
This attribute sets the precision (number of digits) for all numbers printed with the ASCII format.
Type
TSP-Link accessible
Attribute (RW)
No
Usage
precision = format.asciiprecision
format.asciiprecision = precision
precision
Details
This attribute specifies the precision (number of digits) for numeric data printed with the print(),
printbuffer(), and printnumber()functions. The format.ascii.precision attribute is only used with
the ASCII format.
Note that the precision is the number of significant digits printed. There is always one digit to the left of the
decimal point; be sure to include this digit when setting the precision.
Example
format.asciiprecision = 10
x = 2.54
printnumber(x)
format.asciiprecision = 3
printnumber(x)
Also see
format.byteorder
format.data
(on page 7-94)
print()
(on page 7-138)
printbuffer()
(on page 7-138)
printnumber()
format.byteorder
This attribute sets the binary byte order for data printed using the printnumber() and printbuffer()
functions.
Type
TSP-Link accessible
Attribute (RW)
No
707B-901-01 Rev. A / August 2010
Affected by
System reset
A number representing the number of digits to be printed for numbers with the
print(), printbuffer(), and printnumber() functions; must be a number
between 1 and 16
(on page 7-93)
(on page 7-140)
Affected by
System reset
Where saved
Default value
Create
10
configuration script
Output:
2.540000000e+00
2.54e+00
Where saved
Default value
Create configuration
format.LITTLEENDIAN
script
Section 7: Command reference
7-93