beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 115

background image

Chapter 5 Script Commands

Scripting Guide

115

x, X

Accepts an integer value and converts it to unsigned
hexadecimal notation. The letters abcdef are used for the x
conversion and the letters ABCDEF are used for the X
conversion. The precision specifies the minimum number
digits to appear. If the value being converted can be
represented in fewer digits, it is expanded with leading zeros.
The default precision is 1. The result of converting a 0 (zero)
value with a precision of 0 (zero) is a null string. Specifying a
field width with a 0 (zero) as a leading character causes the
field width value to be padded with leading zeros.

If the result of a conversion is wider than the field width, the field is
expanded to contain the converted result. No truncation occurs.
The representation of the + (plus sign) depends on whether the + or
(space) formatting flag is specified.